Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Invalid metrics expression returns 500 #689

Open
drichelson opened this issue Nov 13, 2017 · 1 comment
Open

Invalid metrics expression returns 500 #689

drichelson opened this issue Nov 13, 2017 · 1 comment
Labels

Comments

@drichelson
Copy link

When requesting an invalid metrics expression I would expect to get a 400 (Bad request) instead of the actual 500 (Internal Server Error) that is returned.
Example:

curl 'http://<host>/argusws/metrics?expression=INVALID_EXPRESSION' -v

{"status":500,"message":"Illegal metric expression found: [INVALID_EXPRESSION]"}
@asinghsfdc
Copy link

W-4985406 - added to 5b

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants