We've been seeing failures in our automation which uses the App Submission and Testing APIs: https://developer.amazon.com/docs/app-submission-api/auth.html (e.g. for creating edits, uploading APKs etc.).
In our logs we see occasional 401 responses. These occur immediately after several successful 200 responses. In all cases we use the same auth token.
I've reproduced this on the command line with a simple curl command. I can run the command below repeatedly from a terminal and occasionally it'll just return 401. I'd say roughly 20% of the time maybe.
curl https://developer.amazon.com/api/appstore/v1/applications/${APP_ID}/edits/${EDIT_ID} -H 'Authorization: Bearer ${TOKEN}' -vvv
Can someone take a look please. We're having to put lots of ugly workarounds in our automation to handle this.