-
Notifications
You must be signed in to change notification settings - Fork 39
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
commerce.catalog > invalid scope #99
Comments
Which API do you want to call? |
hi @dantio , thanks for reply. now i see, this scope ( https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly ) only appears in the sandbox oauth scopes, and i was triing in production mode. Now, when i test this on sandbox, and i try to get a product i got the next error:
and the epid (313642744618) exists on ebay-us. is this error is common on sandbox? do you know how can i get this scope on production mode? |
@shopeandodev the eBay sandbox has only limited static data. I would try it with production and add |
@dantio i added that scope to the list, and try to get product info by catalog and got the next error:
Do you know how can i get access to the scope : https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly |
Can you show me all scopes that you are using? |
i commented the last scope, because if i send it i got the error: invalid scope |
Do you set the correct scope in the auth process? This is important. The fastest way to test it:
Now you should have "all" available scopes. |
i got the next message:
|
Did you use the access token from eBay directly? Which marketplace are using?
|
@dantio yes Im using the token direct from eBay as you said me in the previous steps Im using the US marketplace |
You are calling it like this? eBay.OAuth2.setCredentials('ACCESS TOKEN');
eBay.commerce.catalog.getProduct('240206279')
.then(result => {
console.log(JSON.stringify(result, null, 2));
})
.catch(e => {
console.log(e);
}); I see insufficient permissions only if the access token is not set. Try the API Explorer also: |
i got the next error on the Api Explorer:
|
@dantio i send you an email with more details, thanks |
@shopeandodev hey did you managed to call API? |
@dantio no yet, it seems i not have the enough scopes. In the eBay forums someone told me i need to send my app to be checked by ebay support, but i need to pay premium support and waste my limit api calls by day to apply |
i had the same issue, i believe it is to do with the ruName , once i added that to my configs ebay stopped fetching .buy.browse.getItem , so i created a second with same details less ruName and it worked , now i have 2 sets one for buy and the other for the rest import eBayApi from 'ebay-api' dotenv.config() export const eBay2 = new eBayApi({ export const eBay = new eBayApi({ }) eBay.OAuth2.setScope([ |
Hi, thanks for this library.
I have a problem, when i try to use your library in production mode, and try to use the scope
https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly
and then when try to enter to the auth url, i got the error in the redirect url:
https://signin.ebay.com/ws/eBayISAPI.dll?ThirdPartyAuthSucessFailure&isAuthSuccessful=true&error=**invalid_scope**
how can i use the api catalog in production (not sandbox)
thanks in advance
The text was updated successfully, but these errors were encountered: