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

Wrong error code when sending request with bad timespan filter #496

Open
EHJ-52n opened this issue Mar 4, 2020 · 2 comments
Open

Wrong error code when sending request with bad timespan filter #496

EHJ-52n opened this issue Mar 4, 2020 · 2 comments

Comments

@EHJ-52n
Copy link
Member

EHJ-52n commented Mar 4, 2020

I received the wrong response code, when sending the following GET request ...api/timeseries/TBD/observations?timespan=2019-11-31/2019-12-31:

{
  "statusCode": 500,
  "reason": "Internal Server Error",
  "userMessage": "Unexpected Exception occured.",
  "developerMessage":
      "Cannot parse '2019-11-31':
       Value 31 for dayOfMonth must be in the range [1,30]"
}

The response should look like this:

{
  "statusCode": 400,
  "reason": "Bad Request",
  "userMessage":
      "timespan filter not correct: Cannot parse '2019-11-31':
       Value 31 for dayOfMonth must be in the range [1,30]",
  "developerMessage": "any additional detail, that might help."
}
@farmannaseem
Copy link

Hi I wanna Fix this issue. Assign me this issue 😇!!

@PavanButke
Copy link

Hi I also want to fix this issue. Please assign!

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

4 participants
@EHJ-52n @PavanButke @farmannaseem and others