-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🧭 Amplify CLI: AWS Amplify Failed to communicate with the Amplify CLI [using Safari browser] #84
Comments
while cloning a amplify backend app to local environment. |
@rajendrav5 Can you provide the logs that show in your Console when logging in this way? |
@rajendrav5 Are you using WSL, Cloud9 or CloudShell? |
This gets stuck on
|
@fpstidston Are you using WSL, Cloud9 or CloudShell? |
@hsspain Please tell me how I can find out this information |
@fpstidston Does your browser open up to - https://us-east-2.admin.amplifyapp.com/admin/XXX/staging/verify/ and were you able to login? |
@kaustavghosh06 yes the browser opens up to that url, asks me if I'm sure I want to sign in, then a second after I click yes I get the error reported every time. |
@fpstidston Which Browser are you using? Also, which OS are you using locally? |
macOS 11 Safari 14 |
Can you try opening the link into Chrome/Firefox and see if you can get by this error? |
Chrome asks for user name and password instead of offering the 'yes' or 'no' log in options, and if I enter my AWS console credentials then it says they are incorrect |
@fpstidston You can learn here - https://docs.amplify.aws/console/adminui/access-management as to how you can add access and create a user for your Amplify Admin App. AWS creds won't work for login for the Admin app. |
I am logged in now using Chrome, thanks @kaustavghosh06 |
I get this same error in the last days on WSL. It opens a browser with the right URL, I click yes and then it fails to communicate with the browser. |
I am getting the same issue on Cloud9. Login to the URL in browser or in pre |
There are any work around? Cannot pull the project even with the AWS access configured. nodejs 15.x in Ubuntu 20.04 WSL Admin UI in my Chrome (Windows) try to reach http://127.0.0.1:4242 but return error. The port is open as well. It seems to be related to Amplify cli |
I also do get the same error running Ubuntu in WSL2 under Windows 10. I execute the code in the Terminal under Ubuntu, which opens my Edge browser. After logging in and accepting the CLI login, I get "Failed to communicate with the Amplify CLI. You can try again by running: ..." |
Windows 10 WSL 2 workaround:
Apparently, this operation is supposed to pass the tokens. Once they are captured, a pull should work. |
thx for the workaround. for ppl not being experts with curl. Need to use -H to set the appropriate Header and -d for the payload curl -d '' -H "Content-Type: application/json" -X POST http://127.0.0.1:4242/amplify |
Can this issue please be reopened? There is clearly a problem here that needs to be investigated and fixed. Thanks. |
Definitely still an issue.. @swaminator. This was working fine prior to any of the Admin UI updates. |
POST http://127.0.0.1:4242/amplifyadmin/ net::ERR_CONNECTION_REFUSED This is with WSL 2 on Windows 10. I'm using the Chromium version of Edge as my browser. |
OK, so the workaround to fetch the tokens works with the following command providing the failed
|
Still an issue, getting the same with a brand new app |
same issue |
Hi folks - we’ve just launched the Amplify CLI version 9.1.0, which addresses this issue. Now if the auto-login flow fails, you’ll be prompted to manually copy/paste a CLI login key into the Terminal.
CLI.Safari.Login.mp4 |
Feel free to @-mention me to re-open if the update flow doesn't work for you. Don't forget to upgrade to the latest Amplify CLI version |
What's the workaround for when the workaround fails? I'm using 9.1.0, and I can't log in. I develop using a remote EC2 workstation through VS Code on my Mac. Previously, mapping port 4242 worked. That doesn't work anymore with 9.1.0. But the workaround also does not work. The CLI says, "Confirm login in the browser or manually paste in your CLI login key:" But the browser shows the Amplify logo and nothing else. There is no form for obtaining a login key, as shown in the demo video from @renebrandel This is a production, mission-critical app that I suddenly can't work on, so I'm going to have to file an AWS support request. But if anyone knows of any workaround for this new workaround failing, please let me know? |
hi @endymion - can you provide us your App ID and region? We're going to investigate this. (Ideally if you have a screen recording of the repro steps from your end; that'll be great!) |
Oh, gosh, thanks! App ID: dt5zkln62kw1m region: us-east-1 I'll work on a recording... |
Thanks! Can you also provide your Support Case ID? |
(Feel free to email me directly at renbran at amazon dot com) |
worked for me on macOS 12.3 when I ran the command with |
|
@qiubit Thank you! Your suggestion just worked for me yet I'm afraid of what's next since there really is no good direction available for this very new product. Also I had to use the sudo command during the amplify CLI install as well but didn't think to try it for a simple pull command, especially within the root directory so thanks again!!! 👍 |
My overall experience with Amplify has been that there are just certain things that simply do not work as described. I've managed to construct a workflow that functions, but that entailed about an extra month of work, running up against broken or nonfictional things, taking notes of how to avoid them or give up on having a feature that's described in the docs. Ultimately this is down to Amazon's lazy approach to this. Amplify should have been a much better managed and more formally maintained and documented project. Given that it's not, there ought to have been a very clear waring right at the start. |
I ultimately lost faith in Amplify as a whole due to issues such as these. I opted to use the |
@orome do you regret using / learning it at this point? After learning React and Redux, etc about 2-3 years ago, I feel very comfortable with them at this point. The decision to learn Amplify was partially due to my current direction. That being said do you think perhaps there's a better backend cloud tech solution to consider? |
@totallytotallyamazing Amplify ate all the time I had to chose a solution for my current project, so I don't know about alternatives. Others here will know more (and I'd be interested in their thoughts). For me at the moment, Amplify is just another term for tech debt. (I will say though that so many parts of the React ecosystem are so terrible — Redux for example — that some aspects of Amplify are nothing short of miraculous — |
THANKS FOR THE SOLUTION, I WAS DYINGGGGGG |
@renebrandel I'm still having this issue running amplify 12.1.1 on macOS 13.4.1 (Apple Silicon) and Chrome web browser. At one point I noticed if I refresh the page that Amplify opens saying it couldn't communicate with the CLI it will give me a CLI login key. Manually pasting that into the CLI when prompted resulted in an error as well: I've tried disabling ad blockers, DNS blockers, etc. and nothing seems to get through. Any suggestions as I seem to be hitting the same issue this ticket addressed? EDIT: I was using amplify on us-west-2 if that helps. Let me know if there's any more info I can provide. This seemed like a great tool for my use case (solo dev building an app) but if these issues persist and I can't even get the example application running from this tutorial I'll probably move on relatively soon. |
I have a DuckDuckGo Essentials Plugin installed on my Firefox Developer. Disabling the plugin for a moment to log in worked for me as a workaround. |
Where may I find the the Amplify login key? I'm trying to find it by looking at the options in the Amplify console. My terminal can interact with my browser because of current company limitations and such. So I need to find the key and manually paste it in. |
I tried all solutions above, nothing worked for me. Macbook Pro M2, OS 14.2.1 |
@Jacke-debug Switch to Heroku. Amplify is a disaster. |
@totallytotallyamazing Heroku. I was able to do in a few days what I had failed and failed and failed again (and have still yet) to accomplish with Amplify over the course of months. |
This happens even after 15 trails.
The text was updated successfully, but these errors were encountered: