Closed alexbarnes closed 4 years ago
@alexbarnes thank you for reporting this issue, I'm able to reproduce.
The nextToken is being sent by the service API, so I'll pass your findings to the team behind the Synthetics API. I will keep you updated.
Thanks @debora-ito. Do you have any updates on this issue? It's currently blocking the development of a feature I'm working on which uses this API and it would be great to know when I might be able to start work again.
@alexbarnes The service team removed the validation. I ran a quick test calling get-canary-runs
in aws-cli and I don't see the error anymore. Can you check if it's working on your side?
Will be closing this issue soon if there's no updates.
Apologies for the delay @debora-ito . I just tested this using my steps above and can confirm that this is now working as expected.
Thank you for the quick turnaround.
The
nextToken
returned bygetCanaryRuns
is not valid for subsequent requests when fetching multiple pages of data.Expected Behavior
The returned
nextToken
should match the regular expression^[a-zA-Z0-9=/+_.-]{4,252}$
to be valid for subsequent calls.Current Behavior
The actual returned token is
NextToken":"2020-05-24T04:03:39.000Z"
or similar. Using this in a subsequent request gives the following error:com.amazonaws.services.synthetics.model.ValidationException: 1 validation error detected: Value '2020-05-24T05:48:55.000Z' at 'nextToken' failed to satisfy constraint: Member must satisfy regular expression pattern: ^[a-zA-Z0-9=/+_.-]{4,252}$ (Service: AWSSynthetics; Status Code: 400; Error Code: ValidationException; Request ID: 4d4ef7b8-c4f9-4290-9515-d5c951a69ede; Proxy: null)
The wire logs are as follows:
Steps to Reproduce
Simple test for this (needs credentials and a region):
Your Environment