timdorr / tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.
https://tesla-api.timdorr.com/
MIT License
1.99k stars 531 forks source link

403 during token refresh only on docker #738

Closed barancezayirli closed 1 year ago

barancezayirli commented 1 year ago

Hi,

I have been following the guide for authentication.

I use node js as server, dockerized, and deployed to a Kubernetes cluster.

Following the discussions here I do think I have all the headers that I need, and I am making sure TLS is max 1.2 { headers: { 'Content-Type': 'application/json', Accept: 'application/json', 'User-Agent': 'TeslaAuthJS/1.0', 'Keep-Alive': 'timeout=60000', }, agent: new https.Agent({ maxVersion: 'TLSv1.2', keepAlive: true, }), };

Anyone can give me some ideas?