This repository was archived by the owner on Jan 4, 2025. It is now read-only.

Description
I just upgraded from 0.8.9 to 0.8.13 and now I'm getting this error message from Amazon:
<ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
<Error>
<Type>Sender</Type>
<Code>NextTokenCorrupted</Code>
<Message>We could not decode your NextToken. Possible reasons include: a transmission error, improper quoting or a truncation problem.</Message>
</Error>
<RequestId>44311899-96b3-497d-8cb2-b9024db3b738</RequestId>
</ErrorResponse>
This is how I'm calling it below. I've tried it also without the .strip() with the same result. Any ideas what might have changed?
if next_token:
api_kwargs['next_token'] = next_token.strip()
orders_api = get_orders_api()
orders_res = orders_api.list_orders(**api_kwargs)