Closed Frank-Friemel closed 8 months ago
Adding to this, when I get this error it is considered fatal to Homebridge and kills the entire instance (which then loops and restarts) rather than just disabling the plugin:
[12/6/2023, 1:26:01 PM] [Tesla] Exchanging refresh token for an access token…
[12/6/2023, 1:26:01 PM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 8492) is running on port 51912.
[12/6/2023, 1:26:01 PM] [Tesla] Got an access token.
[12/6/2023, 1:26:01 PM] [Tesla] Exchanging refresh token for an access token…
[12/6/2023, 1:26:02 PM] [Tesla] Got an access token.
TeslaJS error: Too Many Requests
[12/6/2023, 1:26:02 PM] Error: Too Many Requests
at _callee9$ (/usr/lib/node_modules/homebridge-tesla/dist/index.js:2998:23)
at tryCatch (/usr/lib/node_modules/homebridge-tesla/dist/index.js:44:17)
at Generator.<anonymous> (/usr/lib/node_modules/homebridge-tesla/dist/index.js:125:22)
at Generator.throw (/usr/lib/node_modules/homebridge-tesla/dist/index.js:69:21)
at asyncGeneratorStep (/usr/lib/node_modules/homebridge-tesla/dist/index.js:311:24)
at _throw (/usr/lib/node_modules/homebridge-tesla/dist/index.js:333:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
[12/6/2023, 1:26:02 PM] Got SIGTERM, shutting down Homebridge...
Same problem here, issue also started today
I encountered the same problem two days ago. I had to disable the child bridge that was running, as it was continuously rebooting.
Seems to work again. Not sure, but I guess this was a server error. May be the expiration time of the auth-token was wrong or lacking which mislead the Tesla Plug-In to ask the server for an auth-token too often
closing for now
@Frank-Friemel In case this occurs again, can you fix the fact that a TeslaJS error kills all of Homebridge? It should only disable to the Tesla plugin. I'm not very familiar with TypeScript or else I would submit a patch... I assume this is catching the Exception rather than letting it go up to the main application.
I am seeing this too, causing homebridge into a restart loop. Had to disable to stop it...
I have Two Tesla's on my account now, is that causing this?
Anything I can do to fix this?
Unfortunately not. Please take a look at latest change to the „Readme.md“
Hi!
First of all: thanks, for the Plug-In. It's great (and also is my Model 3). Got the Plug-In running for a month now. But today it started throwing errors (log attached):
[6.12.2023, 09:40:23] [Tesla] Exchanging refresh token for an access token… [6.12.2023, 09:40:23] [Tesla] Got an access token. [6.12.2023, 09:40:23] [Tesla] Exchanging refresh token for an access token… [6.12.2023, 09:40:23] [Tesla] Got an access token. TeslaJS error: Too Many Requests
Homebridge and UI Plug-In are uptodate. Here's my homebridge infos:
OS Raspbian GNU/Linux Buster (10) User homebridge Node.js Version v18.17.1 Node.js Path /usr/bin storage-path: /var/lib/homebridge config-path: /var/lib/homebridge/config.json Pluginpfad /usr/lib/node_modules
homebridge.log.txt