Skip to content
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

Update auth headers and payload to get around 401s #188

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thevickypedia
Copy link

No description provided.

@simmonyau
Copy link

This worked for me. Thank you! I was getting these 401 errors previously:

Authentication failed: Error requesting data from https://partner-identity.myq-cloud.com/connect/token: 401 - Unauthorized
There was an error: %s Error requesting data from https://partner-identity.myq-cloud.com/connect/token: 401 - Unauthorized

@marcone
Copy link
Contributor

marcone commented Oct 13, 2023

This also fixed the problem for me.

@Tahlor
Copy link

Tahlor commented Oct 14, 2023

lgtm, to test:

 pip uninstall pymyq
 pip install git+https://github.com/arraylabs/pymyq.git@refs/pull/188/head

@jschwalbe
Copy link

If this works, can this be merged?

@thevickypedia
Copy link
Author

@jschwalbe unfortunately I don't have write access to merge it
@ehendrix23 please review this PR and merge it

@Tahlor
Copy link

Tahlor commented Oct 23, 2023

It worked for a few days, now I'm getting 429 errors (cloudflare related). You still probably want to merge this, but more work is needed.

Python-MyQ/Python-MyQ#24 (comment)

@simmonyau
Copy link

simmonyau commented Oct 25, 2023

It worked for a few days, now I'm getting 429 errors (cloudflare related). You still probably want to merge this, but more work is needed.

Python-MyQ/Python-MyQ#24 (comment)

Same here....I plan to move to ratgdo to not rely on myq cloud infra

@thevickypedia
Copy link
Author

thevickypedia commented Oct 25, 2023

I just tested today and I started getting authentication errors
More information: https://community.home-assistant.io/t/the-current-state-of-myq-from-the-codeowner/630623

@marcone
Copy link
Contributor

marcone commented Oct 26, 2023

Can someone ELI5 why whatever the official myQ app does to authenticate can't be replicated in pymyq?
The Google Play store tells me the Android myQ app hasn't been updated in over a month, so it doesn't seem like Chamberlain were actively changing things on the dates mentioned in the timeline in that forum post.

@FlyingDiver
Copy link

The app could have been changed months ago, and only the servers updated recently.

@marcone
Copy link
Contributor

marcone commented Oct 26, 2023

My point was that there were multiple pymyq fixes followed by renewed breakages since the last app update, while the app just kept working. Even in the unlikely case that Chamberlain predicted all of pymyq's attempts at fixes and had new server tweaks ready to block them, the fact is still that the app kept working throughout all this, so whatever is the correct authentication method has been in the app since at least September 22 (I'm using the Android app, which was last updated on 9/22 according to the Play Store).

(I know nothing about authentication protocols, I'm just curious if there's a technical reason why pymyq can't do whatever the app does. Shouldn't it be possible for pymyq to basically pretend to be the app, with Chamberlain's servers none the wiser?)

@FlyingDiver
Copy link

That's what the (many) fixes for the 401 errors have been doing. And don't forget - it's certainly possible for the protocols used by the app to be updated from the MyQ servers without an app update through the Play store.

OTOH, none of this will fix the 429 errors.

@thevickypedia
Copy link
Author

@FlyingDiver
Copy link

Old news. Everyone else has already abandoned it. I'm going to be installing a ratgdo this week and integrating it.

@thevickypedia
Copy link
Author

I was just catching up, I was naively trying to fix it by sniffing packets using the MyQ mobile app but no luck
Even my plan is to install a ratgdo by EOY

@simmonyau
Copy link

I back-ordered 3 ratgdo devices on October 25th and still have not received them unfortunately 😔

@simmonyau
Copy link

I ended up using ifttt to at least be able to close the garage doors through myq with an ifttt maker webhook until I am able to receive my ratgdo devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants