VMware Modern Apps Community
corey_r
Community Manager
Community Manager
Jump to solution

Chart API - 500 code error

Hello Wavefront experts,

I am experiencing a problem with wavefront api.  The problem started around 5/10/2016.

I used to be able to get the daily data points for passing in the following parameters:

  • s : start time = 0 hour for day let's say 5/18/2016 00:00:00 (unix time : 1463529600)
  • e : end time = 23rd hour for the same day 5/18/2016 23:00:00 (unix time : 1463612400)
  • g : 'd'

Please note that this has always worked for me until recently.

It returns the following error msg: "error='server_error' message='sunnylabs.query.QuerySyntaxException: Query syntax error: End time not after start time'"

Your help is appreciated.

0 Kudos
1 Solution

Accepted Solutions
corey_r
Community Manager
Community Manager
Jump to solution

Hi Simon,

Thanks for reaching out to us. The probable reason this is not working is because the time duration between s and e is less than the granularity selected g=d ( day)

This is a known issue with the granularity parameter and our engineering team is working on a fix for it.

In meantime, if you change your end time e to 1463616000 ( 5/19/2016 00:00:00 GMT) your query should work .

Please let me know if this is resolves the issue you are seeing.

-Salil

View solution in original post

0 Kudos
2 Replies
corey_r
Community Manager
Community Manager
Jump to solution

Hi Simon,

Thanks for reaching out to us. The probable reason this is not working is because the time duration between s and e is less than the granularity selected g=d ( day)

This is a known issue with the granularity parameter and our engineering team is working on a fix for it.

In meantime, if you change your end time e to 1463616000 ( 5/19/2016 00:00:00 GMT) your query should work .

Please let me know if this is resolves the issue you are seeing.

-Salil

0 Kudos
corey_r
Community Manager
Community Manager
Jump to solution

Thank you Salil.

I thought I have tried it.  But giving it a try again works.  Appreciate it.

thanks,

-simon

0 Kudos