Expand my Community achievements bar.

SOLVED

Report API - The specified created timestamp has expired or is in the future

Avatar

Level 2

Hi all. I'm working on updating the Perl libraries https://github.com/jpinkham/business-sitecatalyst ( which wrap the Report API ) from v1.3 to v1.4, and I've hit an interesting issue. When I call Report.Queue using the 1.4 endpoint, I get an error message like:

{"error":"Bad Request","error_description":"The specified created timestamp ('2016-12-15T05:22:00') has expired or is in the future","error_uri":null}

However when I make the same call ( effectively ) against the 1.3 endpoint, things work fine. I've tried running ntpd to sync my local clock. I'm not pausing in between generating the request headers/body and sending the request. What's going on?

1 Accepted Solution

Avatar

Correct answer by
Level 2

Slightly worrying there are no responses :/ Anyway, the problem was that the 1.4 API requires a Z character at the end of the timestamp, whereas the 1.3 API didn't.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

Slightly worrying there are no responses :/ Anyway, the problem was that the 1.4 API requires a Z character at the end of the timestamp, whereas the 1.3 API didn't.