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

Error 500 #19

Open
djjudas21 opened this issue Jan 19, 2024 · 0 comments
Open

Error 500 #19

djjudas21 opened this issue Jan 19, 2024 · 0 comments

Comments

@djjudas21
Copy link
Owner

Just started at 2024-01-19 07:00:00

[2024-01-19 09:50:38,029] ERROR in app: Exception on /report [POST]
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2190, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1486, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "//ecowitt_exporter.py", line 254, in logecowitt
    results['aqi'] = aqi_uk(data['pm25_avg_24h_ch1'])
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "//ecowitt_exporter.py", line 124, in aqi_uk
    return index
           ^^^^^
UnboundLocalError: cannot access local variable 'index' where it is not associated with a value
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

1 participant