You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the Tesla auth API regularly issues access tokens with an incorrect ou_code. In particular, Tesla accounts in the EU region will sometimes be issued a token with ou_code=NA.
These tokens also include both the NA and EU API URLs in the aud value.
The command proxy uses the ou_code to select the appropriate URL from the aud list. This results in selecting the incorrect URL, which then leads to http 421 errors.
The command proxy has a workaround to detect the 421 error and update the stored URL to the correct one as returned in the error reply.
However, this "detect and adjust" workaround does not work for wake up commands sent to the wrong URL, as they don't seem to return anything. This means that if a vehicle is asleep before any commands have been sent, or the proxy is restarted, it is impossible to wake the vehicle.
The text was updated successfully, but these errors were encountered:
It appears that the Tesla auth API regularly issues access tokens with an incorrect
ou_code
. In particular, Tesla accounts in the EU region will sometimes be issued a token withou_code=NA
.These tokens also include both the NA and EU API URLs in the
aud
value.The command proxy uses the
ou_code
to select the appropriate URL from theaud
list. This results in selecting the incorrect URL, which then leads to http 421 errors.The command proxy has a workaround to detect the 421 error and update the stored URL to the correct one as returned in the error reply.
However, this "detect and adjust" workaround does not work for wake up commands sent to the wrong URL, as they don't seem to return anything. This means that if a vehicle is asleep before any commands have been sent, or the proxy is restarted, it is impossible to wake the vehicle.
The text was updated successfully, but these errors were encountered: