question

pookeyclara avatar image
1 Like"
pookeyclara asked

API OAuth Scopes is malformed

I've had a script that has been running fine for the past few months with getting orders from eBay using the: https://api.ebay.com/api_scope/sell.fulfillment which would be encoded like this:

https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.fulfillment

I've added another scope: https://api.ebay.com/api_scope/sell.inventory which I have added to the previous scope and encoded, note the space separator with the %20 like so:

https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.fulfillment%20https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.inventory

I've double checked my Client ID and Client Secret, and users have been able to login successfully with the new scopes, but when I use the refresh token to get the access token I keep getting the following error:

{'error': 'invalid_scope', 'error_description': 'The requested scope is invalid, unknown, malformed, or exceeds the scope granted to the client'}

I've been trying to fix this for ages and I can't seem to find what the problem is. The access and refresh tokens are correct. So I don't know what I'm doing wrong. Any help would be great!

oauth scopes
· 1
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

similar issue
0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.