is a test jar to fix the “Too many requests” issue based on https://github.com/openhab/openhab-addons/pull/8090. I would especially like to hear from those that use the smartdevice features if we did break something or if it is still all running. Thanks.
I’ve hit a mean error testing this but frankly I don’t know if it’s caused by the binding.
I haven’t been trying this binding for long but I had it working a couple of days ago.
Problem is the Amaz*n account thing is “offline - configuration pending” and when I try to log into the Alexa account via <openhabip>/amazonechocontrol, it’s not working, Amaz*n always keeps telling me
There was a problem
Enter a valid email or mobile number
although the binding log below suggests it has worked ?
2020-07-11 22:42:05.093 [DEBUG] [mazonechocontrol.internal.Connection] - Make request to https://www.amazon.com/ap/signin/146-999999-1056131
2020-07-11 22:42:05.098 [DEBUG] [mazonechocontrol.internal.Connection] - POST: openid.return_to=ape%3aR0cHM6Ly93d3cuYW1hem9uLmNvbS9hcC9tYXBsYW5kaW5n&prevRID=ape%3AUUUjc0UkRZQ0hDUTNJIR1E%3D&metadata1=ECdITeCs%3ALztbg5yFkI8f%2Fv8Y8701dIUljnvpd80faBgpywcKIJ0VThyF9olvkkoNfocDUD8qLFlslvD2Gfdx%2BLLNq7iKPES%2F4in6LqKoRDHuQKx1GEsvDqku1yjUebnRXvOaypKlxNzFB1Gca%2B2HsaiHuZxmlZuR3vD%2BbF4kw14LUBGLdCYGF8k6VCRDBLa9lJWmIpc8nMzeiQPFQSSX6va3xtVMJGa5esry0KW8DczMf7O9N0PAvF9ReuNMhs%2BN5MunsxiSn6d3dtcHEGwhWrVlsaTqEmJi97I5ZUAnkWZSwxWzLC7DzegvgGBSINtxzfmnqLkGz3mmW%2FDdEhCFc8yoyJzgaSxC0u%2B7EPYAEyjNWXfKZJRCguunWlLI0Nuwn%2FBqPf8Iz27EKrfSef%2FHuC7sWseKBT800zOyt7s7VnmXW6FpGdRiMntHgt2bYSkO8p2hyUISaVFs6Krz%2AkqXRxRIPAXsCLQV1DbIAaEsRQ5xkpUIXOrvrV5aeGGVqi5QaDqjTMCeZ0LHpYHJm0ivShv5wo0cSWatcM0m0t4aYry3fq6tW0JQ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IXsSabBmKrsyD9rBSP7bGoLbkDEJPPe0bL83Th3vFnvYd48uuEKFTVGCcFusVGvIGQ45ed6XsPlsIQj1HDRlbRWd1xsqmtLJWVLUvZ9JpJOHpd02o0g7d0tfiLPssdZ8KsebTFzlj6bNvzTUJzbPOFqKGZs6zvFdWCgU2Nj8edA4Ddu%2Ba86nae9PffQkQysAl7eWgdbwipG20KJj7KBfS0Ma4qp3pijzfwhLksbAgAAAAAMAAAADAAAAAAAAAAAAAAAAJ5kACswTxd4VG5UP1uYABf%2F%2F%2F%2F%2FAAAAAQAAAAAAAAAAAAAAAQAAAAuXvTsWLBTvmZx61EeJ%2BY15kLgmAIjNMQDyb5M%3D&showPasswordChecked=false&email=john%40doe.org&encryptedPasswordExpected=
2020-07-11 22:42:06.265 [DEBUG] [amazonechocontrol.internal.Connection] - Call to https://www.amazon.com/ap/signin/146-999999-1056131 succeeded
Loggin’ in directly works meanwhile so it isn’t a principal issue with the account.
I also noticed the log output below, followed by a large dump of an Amaz*n web page with lots of JS
2020-07-11 22:41:44.283 [DEBUG] [nechocontrol.internal.AccountServlet] - doGet /
2020-07-11 22:41:44.286 [DEBUG] [mazonechocontrol.internal.Connection] - Start Login to https://alexa.amazon.com
2020-07-11 22:41:44.290 [DEBUG] [mazonechocontrol.internal.Connection] - Make request to https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:486674855102726337530440445246810355650135167622600456254077041323413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access
2020-07-11 22:41:44.834 [DEBUG] [mazonechocontrol.internal.Connection] - Call to https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:486674855102726337530440445246810355650135167622600456254077041323413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access succeeded
2020-07-11 22:41:44.870 [DEBUG] [mazonechocontrol.internal.Connection] - Result of GET https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:486674510272633753044044524681050135167622600454077041323413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access:
Thanks for the update. Just did a quick test in-flight (deleted previous jar. added new jar. restarted bundles). The prelim result is everything is looking good so far. I was able to add things from the inbox and the special features (alexa guard) are working.
This is in-flight, so previous authenticated session was untouched.
This is on latest OH snapshot 2.5.7
I will do a full restart later and monitor the logs and report back after it has some time to run.
thanks for the feedback.
Can you please provide the part of the rule where you send the TTS, the timespan between the item changed and the output was done in the previous version and the timespan in the new test version? To prevent the “too many requests”-issue it is necessary to queue the requests, else requests will interrupt each other or ends in “too many requests”. So it depends on how many requests are in the queue until the one you waiting for is processed. This can produce a delay. Maybe it is possible to reduce the delay if we know the delay before and after the update of the new test version.
@mstormi: Agreed, the login problem needs a solution. But it is not related to the last update. It happened with 2.5.5 and 2.5.6, so there is some other issue. The interesting thing is, that it succeeded for me a couple of minutes ago from 2.5.7-SNAPSHOT running on Windows 10. Maybe it’s browser related?
@roy_liao: I just tried sending <speak>Test</speak> to the textToSpeech channel and the output was immediately coming from my Echo Dot.
I was able to reproduce the issue. After a restart of openHAB it worked again. So there is something which stop the tts process. We will take a look as soon as possible.
No. And frankly, I don‘t know why it failed for me on 2.5.6 some days ago and succeeded on 2.5.7 today. There were no code changes. I believe it has nothing to do with our code.
No as it works from the same browser to directly log into alexa.amazon.de[com]
I used Firefox and new MS Edge, SSL or without, NGINX inbetween or not - no difference.
So it likely has to do with HTTP headers (or maybe there’s some JavaScript execution )? or the like but it ain’t browser specific.
TTS doesn’t work for me either (but I expect the login needs to work first anyway for that as I don’t have any authenticated session “left”).
Possibly so, or as … .de and … .com are completely different systems, it could be an unintended side effect. Either way that’s a proper explanation.
You should make the URL OH logs into via binding a configuration option.