simbaja / gehome

Python SDK for GE smart appliances
MIT License
42 stars 29 forks source link

GeAuthFailedError with *valid* credentials. #53

Closed foxsam21 closed 1 year ago

foxsam21 commented 1 year ago

I was using the ha_gehome integration and it worked fine. At some point it stopped working. I was getting authentication errors even though the username/password was right (double checked by logging out/in on the android app). I wasn't sure if something in the integration was causing the errorso I tried gehome-appliance-data -u myusername -p myrealpasswordforgehome -r US and I still am getting errors.

Using slower stringprep, consider compiling the faster cython/libidn one.
2023-06-12 17:42:21,142 DEBUG    Using selector: EpollSelector
2023-06-12 17:42:21,142 DEBUG    Getting OAuth2 token
2023-06-12 17:42:21,142 DEBUG    received event: state_changed, processing callbacks...
2023-06-12 17:42:21,142 DEBUG    processing callback: <bound method GeBaseClient._on_state_change of <gehomesdk.clients.websocket_client.GeWebsocketClient object at 0x7f175fad84f0>>
2023-06-12 17:42:21,145 DEBUG    Client changed state: GeClientState.INITIALIZING to GeClientState.AUTHORIZING_OAUTH
2023-06-12 17:42:22,227 ERROR    There was a problem getting the authorization code, response details: {'method': 'POST', 'cookies': <SimpleCookie: abgea_region='us-east-1'>, '_real_url': URL('https://accounts.brillion.geappliances.com/oauth2/g_authenticate'), '_url': URL('https://accounts.brillion.geappliances.com/oauth2/g_authenticate'), '_body': b'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<

... It was much longer, if you need more of the logs I can post that too.

simbaja commented 1 year ago

I would need more of the log to see what error is being returned from GE, would suggest removing special characters, seems like there's a potential issue with them in some cases.

foxsam21 commented 1 year ago

I don't know what it was. I left it alone and now its working again. I'm not sure when but it didn't work for a while. Nothing changed to break it or to fix it... Thanks again. I'm closing the issue.