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

Token request failing #30

Open
PaddyRu opened this issue Nov 26, 2024 · 0 comments
Open

Token request failing #30

PaddyRu opened this issue Nov 26, 2024 · 0 comments

Comments

@PaddyRu
Copy link

PaddyRu commented Nov 26, 2024

The system stopped working at some point in the recent past, I do not know exactly when though as I wasn't actively using this part in my HA system yet, had just set it up earlier this year to see the information I could read out of it.
I now looked into the logs and see the following:

2024-11-26 22:58:48,419 [INFO] [root:112] Init SSO
2024-11-26 22:58:48,420 [INFO] [somfy_protect.sso:77] Requesting Token
2024-11-26 22:58:48,421 [DEBUG] [requests_oauthlib.oauth2_session:563] Requesting url https://sso.myfox.io/oauth/oauth/v2/token using method POST.
2024-11-26 22:58:48,421 [DEBUG] [requests_oauthlib.oauth2_session:564] Supplying headers {'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded'} and data {'grant_type': 'password', 'client_id': '...', 'client_secret': '...', 'username': '...', 'password': '...'}
2024-11-26 22:58:48,421 [DEBUG] [requests_oauthlib.oauth2_session:565] Passing through key word arguments {'timeout': None, 'auth': None, 'verify': None, 'proxies': None, 'cert': None}.
2024-11-26 22:58:48,424 [DEBUG] [urllib3.connectionpool:1051] Starting new HTTPS connection (1): sso.myfox.io:443
2024-11-26 22:58:48,989 [DEBUG] [urllib3.connectionpool:546] https://sso.myfox.io:443 "POST /oauth/oauth/v2/token HTTP/11" 400 None
2024-11-26 22:58:48,990 [DEBUG] [requests_oauthlib.oauth2_session:393] Request to fetch token completed with status 400.
2024-11-26 22:58:48,991 [DEBUG] [requests_oauthlib.oauth2_session:394] Request url was https://sso.myfox.io/oauth/oauth/v2/token
2024-11-26 22:58:48,991 [DEBUG] [requests_oauthlib.oauth2_session:395] Request headers were {'User-Agent': 'Somfy Protect', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': '250'}
2024-11-26 22:58:48,991 [DEBUG] [requests_oauthlib.oauth2_session:396] Request body was grant_type=password&client_id=...&client_secret=...&username=...&password=...
2024-11-26 22:58:48,991 [DEBUG] [requests_oauthlib.oauth2_session:397] Response headers were {'Date': 'Tue, 26 Nov 2024 21:58:48 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Server': 'openresty', 'Cache-Control': 'max-age=0, must-revalidate, private', 'Expires': 'Tue, 26 Nov 2024 21:58:48 GMT'} and content {"message":"error.invalid.grant","data":[],"uid":"67464498eea3f","error":"invalid_grant"}.

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

No branches or pull requests

1 participant