Closed luisiam closed 3 years ago
It appears we're being blocked on user-agent again. Changing it to something made-up (i.e. not "null") makes it work again. Ho hum....
I thought V6 API will be fixing this issue.
V6 can't fix them blocking us based on user-agent.
Thanks for the tips. Changed the user-agent and it's working again.
Same here. Changed user agent to "pymyq" and its authenticating again.
It's almost comical, the game of cat & mouse. Is there a practical case for setting user-agent to mimic that of a blessed client?
It's almost comical, the game of cat & mouse. Is there a practical case for setting user-agent to mimic that of a blessed client?
We've been down that road, and many others............
I set it to pymyq and I'm still not able to authenticate.
2021-02-22 18:41:05 ERROR (MainThread) [pymyq.api] Authentication failed: Error requesting data from https://partner-identity.myq-cloud.com/connect/token: 400 - Bad Request
I knew how to change the default agent in v2 of pymyq. how does one go about changing it in v3? Line 384 and 401 of api.py?
I knew how to change the default agent in v2 of pymyq. how does one go about changing it in v3? Line 384 and 401 of api.py?
That's what worked for me.
... or the just-released 3.0.4 - thanks @ehendrix23 !
DEBUG:pymyq.api:No user agent provided, trying to retrieve from GitHub.
DEBUG:pymyq.api:Retrieved user agent #RANDOM:5 from GitHub.
DEBUG:pymyq.api:User agent set to randomized value: FpicQ.
Would be amusing if it randomly generated "FUmyQ" 🤣
And @dseven was a bit too quick for me. :-)
I re-introduced the User Agent logic in pymyq 3.0.4. The MyQ is HACS has been updated as well (v0.0.4) (Note that the pre-release for light switches has not yet been updated, most likely tomorrow).
I knew how to change the default agent in v2 of pymyq. how does one go about changing it in v3? Line 384 and 401 of api.py?
That did it. I only changed it on 384. Didn’t realize it was in 2 spots.
MyQ stopped working again. Running Home Assistant 2021.2.3 on docker. Error is observed in the log.
Authentication failed: Error requesting data from https://partner-identity.myq-cloud.com/connect/token: 400 - Bad Request