login about faq

Hi I am using the REST to process an MWS request to Amazon for ListOrders That works fine!

To get subsequent pages thou I use the NextToken given by Amazon in the ListOrders result and pass this to ListOrdersByNextToken. When I send this to Amazon it fails with an invalid Signature so I am wondering if anyone has any sample code of this process. I am concerned that the AddMwsSignature in ChilKat is somehow not getting or incorrectly signing the Token as all the otehr parameters etc are the same as ListOrders!



asked Aug 04 '17 at 05:58

AndyC's gravatar image


I found the problem. I turns out that the Amazon documentation is incorrect. This has an error: https://docs.developer.amazonservices.com/en_US/dev_guide/DG_QueryString.html

It specifically states that:

Do not URL encode any of the unreserved characters that RFC 3986 defines. These unreserved characters are A-Z, a-z, 0-9, hyphen ( - ), underscore ( _ ), period ( . ), and tilde ( ~ ).

But in reality, one must also encode the '/' char -- and this was the char in the NextToken value that caused trouble.


answered Aug 09 '17 at 12:24

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Aug 04 '17 at 05:58

Seen: 2,147 times

Last updated: Aug 09 '17 at 12:24

powered by OSQA