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

Can't add source to "Metrics" metric: internal server error #939

Closed
fniessink opened this issue Jan 15, 2020 · 0 comments
Closed

Can't add source to "Metrics" metric: internal server error #939

fniessink opened this issue Jan 15, 2020 · 0 comments
Labels
Bug Something isn't working

Comments

@fniessink
Copy link
Member

File "/server/routes/source.py", line 27, in post_source_new
data = get_data(database, metric_uuid=metric_uuid)    
File "/server/database/reports.py", line 148, in get_data
return [subject_uuid for (subject_uuid, subject) in subjects if metric_uuid in subject["metrics"]][0]
IndexError: list index out of range

INFO:root:w.x.y.z - - [2020-01-15 10:49:45] "POST /api/v2/source/new/<metric_uuid> HTTP/1.1" 500 928 0.033936
@fniessink fniessink added the Bug Something isn't working label Jan 15, 2020
fniessink added a commit that referenced this issue Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant