BigThunderSR / onstar2mqtt

OnStarJS wrapper for MQTT
MIT License
17 stars 4 forks source link

Request Failed with status 401 - Unauthorized Error #246

Closed mattfox27 closed 3 months ago

mattfox27 commented 3 months ago

Getting this Request Failed with status 401 - Unauthorized error?

BigThunderSR commented 3 months ago

This will need to be addressed in the OnStarJS library, so I have opened samrum/OnStarJS#255 in that project.

BigThunderSR commented 3 months ago

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

mattfox27 commented 3 months ago

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

whats the fix?

almoney commented 3 months ago

Thank you for working this!

BigThunderSR commented 3 months ago

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

whats the fix?

The fix is in https://github.com/samrum/OnStarJS/pull/256 which I implemented in the embedded OnStarJS version of this onstar2mqtt version.

aminorjourney commented 3 months ago

Heck yes @nilathedragon - Furries (and Scalies) saving the world again :)

Note to those having issues: I found I had to regenerate my UUID for everything to update, but that might have just been coincidental. I wasn't getting any polling from OnStar until I regenerated the UUID, now it's working perfectly!

Maliron commented 3 months ago

I am getting "Request Failed with status 403 - Forbidden" when trying to send a command. I even tried using a new UUID, any ideas?

BigThunderSR commented 3 months ago

I am getting "Request Failed with status 403 - Forbidden" when trying to send a command. I even tried using a new UUID, any ideas?

This usually happens when there's a typo in the VIN. Have you double checked your VIN for accuracy? Also, make sure you log into the official GM app and make sure your login works there as well.

Maliron commented 3 months ago

Well, go figure. Turns out my remote access expired yesterday and didn't auto renew. That would do it. Lol! Thanks. Seriously considering making my own "cloud" connection that talks to the CANBUS. I imagine a cheap LTE SIM is cheaper than $150 a year. Wouldn't have to fight the API anymore whenever they roll the app ID too.On Jul 26, 2024 4:31 PM, BigThunderSR @.***> wrote:

I am getting "Request Failed with status 403 - Forbidden" when trying to send a command. I even tried using a new UUID, any ideas?

This usually happens when there's a typo in the VIN. Have you double checked your VIN for accuracy? Also, make sure you log into the official GM app and make sure your login works there as well.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

aminorjourney commented 3 months ago

There’s a project called OVMS https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/704

Development for Bolt EV is there, albeit limited. It does not use OnStar.

That said, THIS project here is super important because not everyone is happy adding hardware and will happily use OnStar as long as it works… however long that may or may not be ;)

Maliron commented 3 months ago

I'm all over this. Thanks!On Jul 26, 2024 10:21 PM, Aminorjourney @.***> wrote:

There’s a project called OVMS openvehicles/Open-Vehicle-Monitoring-System-3#704 Development for Bolt EV is there, albeit limited. It does not use OnStar.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>