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

status 504 errors on connect. Commands seem to work? #135

Closed
lzthqx opened this issue Mar 5, 2024 · 3 comments
Closed

status 504 errors on connect. Commands seem to work? #135

lzthqx opened this issue Mar 5, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@lzthqx
Copy link

lzthqx commented Mar 5, 2024

Error as follows:

error: Error {"error":{"error":{"message":"Request Failed with status 504 - Gateway Timeout","request":{"method":"POST"},"response":{"data":"","headers":{"cache-control":"no-store","connection":"keep-alive","content-length":"0","date":"Tue, 05 Mar 2024 20:06:18 GMT","pragma":"no-cache","request-context":"appId=cid-v1:a7e19842-5b19-4b47-a9cf-85cc6e87a746"},"status":504,"statusText":"Gateway Timeout"},"stack":"Error: Request Failed with status 504 - Gateway Timeout\n at RequestService.<anonymous> (/app/node_modules/onstarjs/dist/index.cjs:588:32)\n at Generator.throw (<anonymous>)\n at rejected (/app/node_modules/onstarjs/dist/index.cjs:27:65)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"}},"timestamp":"2024-03-05 13:06:18"}
Able to confirm connectivity is working fine, dns resolution etc from inside the container. It was working for quite a while until a recent update of the image. Perhaps I'm missing something?

@BigThunderSR
Copy link
Owner

Unfortunately, this is just the nature of the OnStar API. This is one of the reasons I added the capability a couple of versions ago to keep track of the polling status code so that you can keep track of whether the polling succeeded or not. There's nothing we can do to prevent these 504 errors and we just have to deal with them.

@lzthqx
Copy link
Author

lzthqx commented Mar 5, 2024

Thanks so much for the quick reply! I was concerned this was the issue, but wanted to eliminate the possibility I had missed a step somewhere. Thanks for all your efforts!

@lzthqx lzthqx closed this as completed Mar 5, 2024
@BigThunderSR
Copy link
Owner

I just added the helpful usage notes from my HA add-on to the README here as well: https://github.com/BigThunderSR/onstar2mqtt?tab=readme-ov-file#helpful-usage-notes

@BigThunderSR BigThunderSR added the question Further information is requested label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants