pymyq icon indicating copy to clipboard operation
pymyq copied to clipboard

Anyone currently running into 401 Unauthorized

Open mababio opened this issue 2 years ago • 9 comments

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

mababio avatar Oct 10 '23 18:10 mababio

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.

BootsSiR avatar Oct 10 '23 19:10 BootsSiR

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"

augmentedtraffic avatar Oct 10 '23 20:10 augmentedtraffic

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

thevickypedia avatar Oct 11 '23 13:10 thevickypedia

++ same

88gts avatar Oct 11 '23 16:10 88gts

fix

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

augmentedtraffic avatar Oct 12 '23 00:10 augmentedtraffic

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.

drysart avatar Oct 12 '23 00:10 drysart

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 avatar Oct 12 '23 00:10 thevickypedia

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

thevickypedia avatar Oct 12 '23 01:10 thevickypedia

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

rhhayward avatar Oct 12 '23 02:10 rhhayward