-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The requested scope is invalid #12
Comments
Is this an really ebay? Does anyone even care to look at a potential bug? |
I had this error because of a difference between the scopes allowed for a sandbox account and a production account. Once I logged in with the correct account type to match my scopes in the eBay dev account everything worked. |
Hi, What you exactly did to solve the issue? I just realised my Client Credential Grant Type is only for the https://api.ebay.com/oauth/api_scope API only. How did you manage to Grant access to your Client Credential? |
I am assuming you are asking about the code. I based my code on the test cases in the library. I created a UserCredential object with the username and password matching my eBay production credentials. Then to GenerateUserAuthorizationUrl I passed OAuthEnvironment.PRODUCTION and an list of user scopes defined as: private readonly IList userScopes = new List() This is defined in OAuth2ApiTest class. The scopes https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly and https://api.ebay.com/oauth/api_scope/buy.shopping.cart weren't valid for my production account. I believe there are limitations for some apis in production accounts that require special requests to eBay to add them to your account. I hope that helps. |
I am facing also this error when trying to get application access token with accessible scope parameter . |
You have to HTML encode your scope first, see example below: Following C# code worked for me....
|
"https://api.ebay.com/oauth/api_scope/buy.item.feed https://api.ebay.com/oauth/api_scope/buy.product.feed" How could I resolve this ? |
Hi, Also have : when I add If I have only |
Maestros lo he logrado aquí les comparto mi código, me base en la respuesta de @arpetris poniendo los alcances en una lista
};` No he probado mas alcances de mi clave por que no los requiero en lo que estoy haciendo , pero espero les pueda servir |
Hi, First of all, you need to get the token here is an example. curl -X POST 'https://api.ebay.com/identity/v1/oauth2/token' -d 'grant_type=authorization_code Details:
Getting user consent |
Did you ever figure this out? I have the same issue and from what i gather eBay does not provide the broader set of scoped under the client credential grant work flow and it seems the only option is to use the user consent workflow which required redirect uri... so I am not sue what desktop apps that dont have anyway to provide redirect URIs without setting up webservers and opening ports,, are to do... If you or anyone has figured out how to add additional scoped to "client credential grant type" for your application keysets, please let us know. |
Looks like client credentials can read public data only. Unfortunate. |
Hi there,
I get this error when I cloned and changed the info with my ClientId/Secret Key etc.
The error is: ""{"error":"invalid_scope","error_description":"The requested scope is invalid, unknown, malformed, or exceeds the scope granted to the client"}"
The scopes I supply are only and I definitely have access to these scopes:
https://api.ebay.com/oauth/api_scope, https://api.ebay.com/oauth/api_scope/sell.fulfillment
If I try only https://api.ebay.com/oauth/api_scope then it works and returns an access token. Which means my configurations are correct.
What is this error and why this should happen?
I have access to all these scopes. See below:
TIA
The text was updated successfully, but these errors were encountered: