michaelwoods/onstar2mqtt

Request Failed 400 on initial integration

Closed this issue · 9 comments

Hi,

I've read through some of the issues and I know "Request Failed with status 400 - Bad Request" is a common indicator that GM changed something or just an intermittent server issue. I've seen issue 233.

I'm setting this up for the first time, using new config values though, and I'm not sure if the issue is in my config, or the connection to onstar. Is there a way I can tell? I've ran the docker a few times in the last 12 hours. I'm pretty sure the username/password/pin/vin are right. I'm not 100% sure my mqtt settings are right (port/tls, for example).

Do you have any reason to think it would be down today and yesterday? I did get an email saying they were implementing MFA soon.

My instance stopped working as well. Not sure when exactly since I was gone for a week.
Not sure where to find any logs.
[Edit] going through HA history it seems my last update was 2/21/24 at around 20:00 MST.

docker logs onstar2mqtt will give you the text log from npm. There is personal information in it, so be careful posting any of it.

Same issue here as well - it was working fine for a few months and stopped working on or around 2/21/24 for me as well. In looking at the JSON response I do see:

"data": { "error": "invalid_client" },

so perhaps GM has locked down API access more tightly.

Has anyone found an updated library or a workaround?

I forgot to report back. The BigThunder version is working well for me. Onstar has its limitations. But this integration is impressive. I ended up installing it as an add on.

I forgot to report back. The BigThunder version is working well for me. Onstar has its limitations. But this integration is impressive. I ended up installing it as an add on.

Just read back in the thread and BigThunder is working for me as well. Thank you @BigThunderSR!

Pushed a build with the latest OnstarJS

Pulled latest and im getting the error 400 bad request

My fork is still working with the latest OnStarJS version - https://github.com/BigThunderSR/onstar2mqtt