question

kotsak avatar image
kotsak asked

HTTP/1.1 400 Bad Request when requesting a folder's contents via pagination

Hi everyone, I and a couple of our users have started receiving the below error message when requesting a folder's contents in pages (when using the StartToken parameter in the query) HTTP/1.1 400 Bad Request {"message":"com.google.common.io.BaseEncoding$DecodingException: Unrecognized character: ","logref":"30960f83-df3c-11e4-bed7-9d3dd00cd2c5"} ParseLastResponseError: {"message":"com.google.common.io.BaseEncoding$DecodingException: Unrecognized character: ","logref":"30960f83-df3c-11e4-bed7-9d3dd00cd2c5"} ParseResponseError: com.google.common.io.BaseEncoding$DecodingException: Unrecognized character: , Was working fine in the past. Anyone has any idea what may be going on? Thanks, Kostas
amazon drive
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kotsak avatar image
kotsak answered
Forgot to add the response headers. Recv 10/4/2015 11:43:54: HTTP/1.1 400 Bad Request Server: Server Date: Fri, 10 Apr 2015 04:43:53 GMT Content-Type: application/json Content-Length: 140 Connection: keep-alive x-amzn-RequestId: 30960f83-df3c-11e4-bed7-9d3dd00cd2c5 x-amzn-ErrorType: InvalidParameter: http://internal.amazon.com/coral/com.amazon.clouddrive.service/ Vary: Accept-Encoding,User-Agent I am suspecting they may have changed the page token format. This is what I receive as a next page token which I pass as a parameter in the query's StartToken: qF56FGV7FSSDK+BRHVdhSPpweAhAbzkwolrNeAokdnrtLEt+A28iD6Jc2Gk3RGMgkC54BGZtOx61OcwPCX1uRNttVjsOKnZK76E=
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jamie Grossman avatar image
Jamie Grossman answered
Hi there, Thanks for the post. This bug was reported a while ago, but it should have been fixed now. Can you confirm if you are still seeing this issue? Regards, Jamie
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.