Open jauntyjocularjay opened 1 week ago
I updated my parameters object
parameters = {
clientID: ENV.ebay.sandbox.clientID,
clientSecret: ENV.ebay.sandbox.clientSecret,
redirectUri: 'Zapplugin-Zapplugi-zapplu-mgrkif',
env: Constant.ebay.sandbox.env,
baseUrl: Constant.ebay.sandbox.base_url
}
...
const ebayAuthToken = new EbayAuthToken(parameters)
And I am still getting the same error:
EbayOauthToken {
credentials: {
SANDBOX: {
clientID: ---,
clientSecret: ---,
redirectUri: 'Zapplugin-Zapplugi-zapplu-mgrkif',
env: 'SANDBOX',
baseUrl: 'api.sandbox.ebay.com'
}
},
grantType: ''
}
TypeError: getApplicationToken(...) is not a function
at file:///path/to/project/components/ebay/ebay.authtoken.mjs:47:1
Update: To make matters stranger, the errors are thrown on the wrong line. It doesn't seem to be doing it anymore, maybe closing VSCode and GitBash helped, but it was saying the error was 2-3 lines below where it was intending to throw the error.
I am having some trouble implementing this library. I think the readme could use some clarification. One of the pieces of data I am getting back in found in the console output as described in my gist:
I saw from another issue open that these properties (env, baseURL) need to be overridden.