Skip to content

bug: internal error on /api/v2/insights/templates #8690

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

Closed
mtojek opened this issue Jul 24, 2023 · 0 comments · Fixed by #8693
Closed

bug: internal error on /api/v2/insights/templates #8690

mtojek opened this issue Jul 24, 2023 · 0 comments · Fixed by #8693
Assignees
Labels
s3 Bugs that confuse, annoy, or are purely cosmetic

Comments

@mtojek
Copy link
Member

mtojek commented Jul 24, 2023

When you hit the endpoint: https://dev.coder.com/api/v2/insights/templates?start_time=2023-07-23T00:00:00Z&end_time=2023-07-24T00:00:00Z&interval=day, it fatals with:

{"message":"Internal error fetching template insights.","detail":"execute transaction: get template daily insights: pq: more than one row returned by a subquery used as an expression"}
@mtojek mtojek added the bug label Jul 24, 2023
@johnstcn johnstcn added the s3 Bugs that confuse, annoy, or are purely cosmetic label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s3 Bugs that confuse, annoy, or are purely cosmetic
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants