Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upBetter error reporting for missing query string parameters #4811
Comments
This comment has been minimized.
This comment has been minimized.
BrianHa94
commented
Nov 1, 2018
|
@brian-brazil I would like to take this one up |
This comment has been minimized.
This comment has been minimized.
codwu
commented
Nov 7, 2018
|
@BrianHa94 Are you still working on it? I would like to open a PR for this issue. |
This comment has been minimized.
This comment has been minimized.
BrianHa94
commented
Nov 7, 2018
|
@codwu Yes, I have a fix. I just need to test before opening a PR. |
This comment has been minimized.
This comment has been minimized.
|
Hi @BrianHa94 could you submit the patch? This is still an issue on 2.7.1 |
This comment has been minimized.
This comment has been minimized.
|
Hi @gouthamve I would like to work on this Just to be sure this change would require using |
This comment has been minimized.
This comment has been minimized.
|
@gouthamve @palash25 Would it be useful if we set |
This comment has been minimized.
This comment has been minimized.
|
@palash25 you can go ahead if @BrianHa94 is not working on it. @BrianHa94 are you still on it? |
This comment has been minimized.
This comment has been minimized.
BrianHa94
commented
Feb 18, 2019
|
@palash25 please go ahead. |
candlerb commentedOct 31, 2018
Proposal
Use case. Why is this important?
Currently a missing query parameter is reported as if the query parameter was present with empty string. Furthermore, the error message does not include the name of the faulty parameter. This makes it hard to identify the problem with the query.
This affects people experimenting with the API for the first time.
Bug Report
What did you do?
What did you expect to see?
Something like:
What did you see instead? Under which circumstances?
Environment
System information:
Prometheus version: