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

X-TME-APP-VERSION not provided #152

Closed
joro75 opened this issue Mar 27, 2022 · 2 comments
Closed

X-TME-APP-VERSION not provided #152

joro75 opened this issue Mar 27, 2022 · 2 comments
Labels

Comments

@joro75
Copy link
Collaborator

joro75 commented Mar 27, 2022

Describe the bug
No information is retrieved anymore from the Toyota servers because of a 'X-TME-APP-VERSION not provided' error.
The ToyotaApiError exception is raised with the information:

ToyotaApiError':'HTTP: 400 - {"timestamp":1648387011009,"status":400,"error":"Bad Request","message":"X-TME-APP-VERSION not provided","errorCode":"CMA400"}

To Reproduce
Not checked yet, but I expect it will also be present when the example from README.md is used.

Expected behavior
That the mytoyota library provides an appropiate 'X-TME-APP-VERSION'.

Additional context
My Domoticz plugin which is using the mytoyota library, was working correctly on March 21st. However since March 22nd no information is being retrieved anymore. No configuration changes, software update or restart has been performed on my side. It seems that the Toyota Servers are suddenly requiring the additional headers.

@joro75
Copy link
Collaborator Author

joro75 commented Mar 27, 2022

I now realize that this is related to PR #151.

@joro75
Copy link
Collaborator Author

joro75 commented Mar 27, 2022

Also see: DurgNomis-drol/ha_toyota#101

@joro75 joro75 closed this as completed in 40b630a Mar 27, 2022
joro75 pushed a commit to joro75/mytoyota that referenced this issue Mar 27, 2022
Toyota recently started to require this header.

Fixes: DurgNomis-drol#152
DurgNomis-drol added a commit that referenced this issue Mar 28, 2022
* Update controller.py (#151)

Toyota recently started to require this header.

Fixes: #152

* Update controller.py

Co-authored-by: Simon Hansen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants