cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Metrics API - Query Timeframe from and to not supporting space character as documented

uhh
Frequent Guest

To whom it might concern 😉

 

The documentation says:

  • Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional.

But using a space character will not work:

{"error":{"code":400,"message":"Constraints violated.","constraintViolations":[{"path":"from/to","message":"Failed to parse time instant expression. Reason: Failed to classify a date format: \"2021-01-01 00:00:01\".","parameterLocation":"QUERY","location":null}]}}

Using 2021-01-01T00:00:01 will work.

Tested using Swagger interface and curl 

 

Is there any official way of reporting bugs - or is this the way?

2 REPLIES 2

robert_schausbe
Inactive

thx for reporting this.
I´ve created an issue to have our engineers taking care of it.

robert_schausbe
Inactive

@uhh fyi - this has been fixed according to the documentation, so the human readable timestamp now also allows whitespace. 

Featured Posts