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

fix vehicle offline detection #70

Merged

Conversation

morganofslo
Copy link

During testing, when sending a command to sleeping vehicles, the call returns a Request Timeout (HTTP 408) with the message "vehicle is offline". This is not detected as an offline vehicle, and the request will continue to retry in the dispatcher until the context deadline times out, which further obscures the original error.

This change adds to the existing 'offline' handling in inet.go to handle this case. I have also updated the message to match the existing REST api response text.

@sethterashima
Copy link
Collaborator

Looks good, thanks for the contribution.

@sethterashima sethterashima merged commit 6f8d9ad into teslamotors:main Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants