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

Exporter Error Out after ~8 hours #12

Open
afreels95 opened this issue Mar 31, 2022 · 3 comments
Open

Exporter Error Out after ~8 hours #12

afreels95 opened this issue Mar 31, 2022 · 3 comments

Comments

@afreels95
Copy link

The exporter was working fine for a few hours then I started exiting in a loop with this error.

Cannot read property '0' of undefined TypeError: Cannot read property '0' of undefined
at /app/tesla-prometheus-exporter.js:361:95
at Generator.next ()
at fulfilled (/app/tesla-prometheus-exporter.js:25:58)
at processTicksAndRejections (internal/process/task_queues.js:95:5)

Running in Docker config below
tesla-exporter:
container_name: tesla-exporter
image: wywywywy/tesla_exporter
ports:
- '9885:9885'
environment:
- TESLA_EXPORTER_RETRIES=0
- TESLA_EXPORTER_TOKEN=

@afreels95 afreels95 changed the title Exporter Error Out Exporter Error Out after ~8 hours Mar 31, 2022
@wywywywy
Copy link
Owner

wywywywy commented May 3, 2022

My apologies. I didn't see your issue until now.

I'm working on a version 2 now and hopefully it'll sort out the issue you're having.

@wywywywy
Copy link
Owner

wywywywy commented May 3, 2022

Okay v2.0.0 has been released. Can you please give it a try and see if it works for you?

Also I recommend leaving TESLA_EXPORTER_RETRIES as default, because the Tesla API itself sometimes errors out randomly.

@wywywywy
Copy link
Owner

@afreels95 Token now refreshes every 7 hours in v2.0.1. So it shouldn't error out after 8 hours any more. Please can you give it a test.

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

No branches or pull requests

2 participants