arraylabs / pymyq

Python wrapper for MyQ API
MIT License
112 stars 42 forks source link

Anyone currently running into 401 Unauthorized #187

Open mababio opened 8 months ago

mababio commented 8 months ago

Not sure if changes were done on the MQ side of their api, but my creds are good but getting 401 error. can anyone confirm that this is not the case for them

BootsSiR commented 8 months ago

Just started for me today as well. Hoping it's just a glitch on their end. I'm able to log in/out of the app fine.

augmentedtraffic commented 8 months ago

same here for the past few hours. Similar issue a few weeks ago (403), auto resolved after about 10 or so hours.

Home Assistant also was impacted

link

They changed the User agent I think to "work-around"

thevickypedia commented 8 months ago

I'm here to report the same issue as well Started happening randomly

Authentication failed: Error requesting data from https://partner-identity.myq-cloud.com/connect/token: 401 - Unauthorized
88gts commented 8 months ago

++ same

augmentedtraffic commented 8 months ago

fix

HA group figure it out . I tested on my version and it works now - someone needs to do a PR

drysart commented 8 months ago

HA uses the pymyq from this repo: https://github.com/Python-MyQ/Python-MyQ

Looks like it shares a common ancestor with this one, so a cherry pick of the fixes from the pending PR over there would probably work over here just fine.

thevickypedia commented 8 months ago

I think Python-MyQ is just a spin off from this repo I applied the solution from https://github.com/dailow/Python-MyQ/commit/4a8ff6a5e1939cee100735864d8cc9f60f8a5aa9 The PR @drysart mentioned also seems to be the same It fixed the issue for me

thevickypedia commented 8 months ago

There were a lot of changes which I felt unwarranted So I created a PR with minimal changes and I have it working for me Can anyone verify this PR and approve it https://github.com/arraylabs/pymyq/pull/188

rhhayward commented 8 months ago

The change that @thevickypedia works for me so far, just to add my +1