03-03-2023 07:20 PM
Hello,
I'm just getting started using the eBay API and have run into some frustrating roadblocks using the Trading API.
When attempting to make a call to the Trading API using an Auth'n'auth token, I consistently receive an ErrorCode 931 (full message below). I first encountered the issue when trying to make a call from my own application but I run into the same error when using the API Explorer directly on the eBay developers program site. All the actions I am taking are through the Sandbox, not Production. As far as I can tell I am correctly generating tokens (User Tokens Page -> Sign in to Sandbox -> Agree -> Copy Token. All the actions I am taking are in the Sandbox environment, not Production.
<Errors>
<ShortMessage>Auth token is invalid.</ShortMessage>
<LongMessage>Validation of the authentication token in API request failed.</LongMessage>
<ErrorCode>931</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
Any thoughts are greatly appreciated.
03-06-2023 03:36 AM
Same here. Im using an app that is years old so im wondering if something has broken with the token generation
03-06-2023 05:48 AM
Try wrapping the token in double quotes.
I had a similar issue and it sorted it see this link https://github.com/hkonnet/laravel-ebay/issues/26
03-08-2023 06:43 AM
I'm having the same issue. Unfortunately wrapping the token in double quotes did not solve the problem.
03-09-2023 12:08 AM
Update: I tried using OAuth instead of Auth'n'Auth and it worked.