8000 Error Message: We could not decode your NextToken · Issue #264 · python-amazon-mws/python-amazon-mws · GitHub
[go: up one dir, main page]

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

Error Message: We could not decode your NextToken #264

@chadsaun

Description

@chadsaun

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0