BigThunderSR / homeassistant-addons-onstar2mqtt

OnStarJS wrapper for MQTT as a Home Assistant Add-on
Apache License 2.0
21 stars 2 forks source link

Fails to start and stay started #599

Closed bditter closed 1 month ago

bditter commented 1 month ago

Seems to have failed in the middle of the night. I've rebooted several times. Is this possibly due to the new MFA they imposed. I logged into MyChevrolet app and it required a code via email. I did go in and turn the MFA off under my account.

info: !-- Starting OnStar2MQTT Polling --! {"timestamp":"2024-07-19 08:25:03"} info: Requesting vehicles {"timestamp":"2024-07-19 08:25:03"} error: Main function error: {"error":{"message":"Request Failed with status 401 - Unauthorized","request":{"_closed":true,"_contentLength":0,"_defaultKeepAlive":true,"_ended":true,"_events":

"afterWriteTickInfo":null,"allBuffers":true,"allNoop":true,"autoDestroy":true,"bufferProcessing":false,"buffered":[],"bufferedIndex":0,"closeEmitted":true,"closed":true,"constructed":true,"corked":0,"decodeStrings":false,"defaultEncoding":"utf8","destroyed":true,"emitClose":false,"ended":false,"ending":false,"errorEmitted":false,"errored":null,"finalCalled":false,"finished":false,"highWaterMark":16384,"length":0,"needDrain":false,"objectMode":false,"pendingcb":0,"prefinished":false,"sync":false,"writecb":null,"writelen":0,"writing":false},"allowHalfOpen":false,"alpnProtocol":false,"authorizationError":null,"authorized":true,"connecting":false,"encrypted":true,"parser":null,"secureConnecting":false,"servername":"api.gm.com","ssl":null},"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":false,"writable":true},"status":401,"statusText":"Unauthorized"}},"timestamp":"2024-07-19 08:42:44"} s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

BigThunderSR commented 1 month ago

This will need to be addressed in the OnStarJS library, so I have opened https://github.com/samrum/OnStarJS/issues/255 in that project.

bditter commented 1 month ago

Not sure if this means anything but it appears that MFA cannot be completely disabled. I turned off the selected option verified and signed out. When I signed back in it requested the verification code from the same source I had just disabled. Once I authenticate (using the MFA) to the MyChevrolet app closing it and opening it several time it does not require to log back in. Not sure how long that will last.

almoney commented 1 month ago

It looks like our OnStarJS creator is not available. Do you have any thoughts on how to repair it? I know that this is not a documented API, but I continue to consider asking GM for one.

BigThunderSR commented 1 month ago

It looks like our OnStarJS creator is not available. Do you have any thoughts on how to repair it? I know that this is not a documented API, but I continue to consider asking GM for one.

GM is absolutely not going to help which is why OnStarJS was created in the first place.

BigThunderSR commented 1 month ago

The fix from @nilathedragon worked. Thanks much!!!