-
Notifications
You must be signed in to change notification settings - Fork 300
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
500 Internal Server Error on SetUp #2704
Comments
Same issues here. |
Same and following |
Same here. Following. |
Same issue. Following |
After setting up same error as you guys here the log
|
same here |
Same here |
|
@danielbrunt57 The OP has version 2024.11.
|
I realize that but I was not replying to the op but @malosaaa, who should not have posted his error here as his error is due to HA Core 2024.12.0b# where python is now 3.13 and aiofiles is 24.1.0. |
User error for me... I was using the wrong email/password combination on the configuration UI causing it to result in a 500 error as to be expected. |
Otherwise known in IT support as a PEBKAC issue - Problem Exists Between Keyboard And Chair! 😊 |
sigh, literally every single time i got to install this bloody plugin it seems to be broken in some way. |
Tp be fair the issue is likely on Amazon. During Setup Amazon was telling me that the account I am using isn't signed up (It is, I used it in the Alexa app to doublecheck and the signup process it was defaulting to was telling me that the email was already used). Sadly however it's on the devs of this plugin to fix it or give clearer instructions for eu users maybe? |
I am also having: I also use 2FA so that is not the problem. An I am current on ALL updates. |
@thefunkygibbon Comments like these unfortunately do not help contributors want to solve issues and for me, only serve to make me want to just fork this project for my own personal and private use. I really should not be wasting my precious time trying to help fix things for others when my setup here in Canada is working perfectly fine with the code the way it is. Complaints and negative comments turn me off. |
I am thinking that is probably accurate. It's a known fact that Amazon did change the Alexa login windows earlier this year. The Alexa app used to present email + password together on first screen then optionally followed by OTP input if configured on the account. The login sequence now is 1. email, 2. password, optionally 3. OTP input. Another developer found a different URL for us to use which starts with sign in as new account and we have to select sign in to existing account where email + password are together followed by OTP input. I've dug inside the code for alexa-remote2 (javascript) from which this integration was developed years ago and have asked a few questions to the author of that repo who still actively works on it. Unfortunately, AMP was hardcoded to make things more user friendly for us than the way remote2 gets kickstarted, which is basically immune to authentication processes by Amazon. It just informs you to manually open a URL in your browser. that URL is a simply proxy callback when authentication is successful. It just waits for the success message however long and however many hoops Amazon takes you through (OTP, CAPTCHA, double verify you are who you say you are via an OTP SMS to the phone number on the account, open the Alexa app and verify yourself, or, or, or. Once success is achieved, the callback retrieves the login session cookie to kickstart itself. Yes! I've spent many MANY sleepless nights trying to figure this thing out, and I only recently started this deep-dive inside Python and the huge learning curve 5 months ago. Before then, I really had no understanding of the inside workings of "HA", and all in my "spare" time when not working, socializing, watching TV, sleeping. Okay...! Hopefully, we'll get there. Please have patience even when you're frustrated! One more comment, yesterday Apollon77 (alexa-remote2) did point me to his code section where he creates the Alexa "login" URL. I just need to check if that's the URL we're using or not. My first impression when I looked at it is I think it might be the URL we used to use 4 months ago and if so, doesn't help me provide an instant fix but will serve as a starting point to develop a new method of authenticating AMP with Amazon (Alexa). And that will take time unless other contributors get involved. |
Unfortunately, all that AMP sees is "HTML error 500" which means....
If you'd rather see ""Config flow could not be loaded: 500 Internal Server Error: The server has encountered an unexpected condition or configuration problem that prevents it from fulfilling the request made by the browser or client", I can make that happen! I can probably also add additional details of the code section that it occurred in. But none of that will help me solve the reason it occurred. |
You right, i totally forget i was testing it on my beta system... silly me... well i wait till its supported then |
I guess you are welcome to buy NabuCasa cloud and use native integration. You aren't really helping here. |
"I guess you are welcome to That semantic aside 😊, Nabu Casa Cloud only provides TTS to Echo devices and nothing else that AMP can do such as Actionable Notifications, integration of Echo connected devices like Zigbee via Echo hub, temperature sensors, AQM sensors, etc. into HA. The only reasons I stick with AMP are Actionable Notifications and last_device! |
it is for free, dont complain. And few bucks/month for HA isnt a lot either. |
@danielbrunt57 @MaJerle - Can someone not vent frustration? I feel that it isn't particularly out of order, all things considered. I have attempted to get the integration to work probably 4 or 5 times in the last couple of years and each time it didn't work for some issue with not supporting the latest code changes of HA or amazon changing things too which no doubt causes issues. but from a user perspective, and considering that this integration caused major HA bootloop problems only a few months back, it's not ideal. |
So you're saying that no one should be frustrated with something that claims to work but has issues, just because it's free? That’s an odd thing to suggest. Home Assistant, like many free services, sometimes has problems, and it’s completely reasonable to express disappointment when things don’t work as expected. Just to clarify, my comment was based on my personal experience and opinion. I wasn't making any broad claims or complaining about support or feeling entitled. I was simply stating what I’ve encountered. If you’re unsure, maybe give my comment another read.
As I’ve pointed out, paying 75 euros a year for features I don’t even need—like remote access and Alexa integration—doesn’t seem worth it. I already have those capabilities. Plus, the subscription service doesn’t even offer the ability to stream audio to Alexa, anyway, at least according to the Nabucasa documentation I’ve come across. |
I don't know how you call it, but I like AMP to be clear, and in parallel I use the NabuCasa cloud, because I can expose entities and control them with voice (VTC = Voice To Command? :)) My point was and still is that if you get something for free (and especially software) you should never expect to be perfect. Even paid software solution has "only" 99.9% uptime. If you pay, you have absolutely all the means to complain and go nuts. Sadly, free software is often free for a reason. We should be thankful for having HA 100% FOC and same for this great extension, that is currently sadly not working. But it will come back soon. Then, I'd like to see thank you from all of you ;) |
Let's keep things positive here!
If you need to vent the above thoughts, try the wife or your friends! 😉 |
No, that's not what we're saying.
It's perfectly reasonable to express your disappointments, but not here. GitHub issues is a place to report issues, get help, offer suggestions, assistance or recommendations, etc. but not complaints, gripes, whining or venting, etc. If you want to continue discussing this, feel free to pm me over in HA community forum (dbrunt). |
You can now do that for free with the Home Assistant Matter Hub add-on. The means of selecting/deselecting exposed entities is not point and click like nabu but it is easier than the DIY smart home skill.
The acronym is TTS (text to speech) |
No complaints here, a 👍 for your efforts creating this. Regrettably I still have the reported issue, tried the latest version and rolled back to another version recommended on a discussion thread. I've not got 2FA set up on amazon, could this be the issue. |
Which version did you roll back to where it works? |
Apologies, my post was a bit misleading. I rolled back to 4.12.7 and 4.12.12 and neither worked. Essentially I haven't got it working, but would like to as I'd like to add voice responses to some of my automations for security reasons. |
I am not complaining. I am stating a fact. A software package free or not should be tested prior to release. If an error is found after release, then there should be some way to rewind the version to a working state. Should that not be possible, then a news release would be helpful, and hopefully a patch. Most of us use the Alexa integration to give TTS voice alerts about system status within our Home Assistant enviornment. Error messages should include as much information as possible not "got into trouble". My Home Assistant is now crippled without the messaging that I have worked on and relied on for the past several years. I am hoping that the developers are able to resolve this issue. This is a breaking change for me, meaning I may break out the google and replace the alexa. This is only my opinion so go ahead and flame me. |
I think when interacting with engineers, providing information is important. Obviously the quality of the information is objective (not subjective). |
The good news is I see folks working on the PRs (fixes) for alexapy and hopefully we can get a merge and deploy soon. |
I always test my pull requests...in Canada so...move to Canada!!! Please, think before you speak!!! |
Fact??? No, you are demanding... |
Daniel, any timeline you knownof for when alexapy dependency updates will be bumped up? |
BTW, was using before conversion to UI setup(when YAML setup needed) and it is a amazing add to HA. Ty Daniel!
|
New release Thanks to all for contribution. |
Deleted everything and reinstalled. After this everything works fine. Thank you |
Still seeing the 500 status page on setup, even though I'm running 5.0.1 and HA 2024.12.1.
I'd love to help debug this, but I think more detailed error messages would be beneficial for everyone. |
Yes, it' a connection issue:
Your log mentions line 1049 in config_flow. It's inside
And specifically here:
As you can see, it catches httpx.ConnectError but not httpx.ReadTimeout. So why is proxy authentication timing out?
|
The should be (hopefully) a LOGGER.debug entry before the above with info about the specific request. |
ChatGPT tells me this: From the provided code, it is evident that httpx.AsyncClient is being used to perform HTTP requests. By default, the timeout in httpx for each individual connection is 5 seconds. To increase the timeout in the given implementation, you would need to configure the httpx.AsyncClient used in the AuthCaptureProxy class. Specifically, you can modify the session_factory in the constructor to include a timeout parameter. Here’s how you can adjust the timeout to, for example, 30 seconds: Update the AuthCaptureProxy initialization
Key Points:
You can still pass a custom httpx.AsyncClient via the session parameter if needed. The session_factory is used as a fallback. By implementing this change, all requests made through this AuthCaptureProxy instance will use the updated timeout value. |
Here is an untested |
You can also replace lines 1020-1059 in
|
IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.
Describe the bug
So i tried setting up the integration for ca 40mins now. Dosen't matter if I choose amazon.de or .com use Otp or not after the Alexa sign in screen pops up. It either says that my account dosen't exist or it will give me Captcha challange which will result in a 500 Server Error.
To Reproduce
Try to Sign in into Amazon Alex Account
Expected behavior
Sign in/Account Linking working
System details
Core
2024.11.3
Frontend
20241106.2
const.py
or HA startup log):5.0.0
pip show alexapy
in homeasssistant container or HA startup log):Debug Logs (alexa_media & alexap
home-assistant_2024-11-29T01-52-26.043Z.log
y)
Please provide [logs]Additional context
It could be the case that the Amazon Servers are currently not working correctly because its 2:30 in the night
The text was updated successfully, but these errors were encountered: