Skip to content
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

error is not defined #21

Open
aztekCom opened this issue Mar 19, 2020 · 0 comments
Open

error is not defined #21

aztekCom opened this issue Mar 19, 2020 · 0 comments

Comments

@aztekCom
Copy link

Getting this error when i call getTokenInfo with incorrect token

D:\Work\aztek-api\node_modules@madisonreed\amazon-payments\lib\api.js:23
return callback(error.badToken('Token does not belong to us', tokenInfo));

ReferenceError: error is not defined
at D:\Work\aztek-api\node_modules@madisonreed\amazon-payments\lib\api.js:23:23
at Request._callback (D:\Work\aztek-api\node_modules@madisonreed\amazon-payments\lib\amazon.js:63:14)
at Request.self.callback (D:\Work\aztek-api\node_modules@madisonreed\amazon-payments\node_modules\request\request.js:121:22)
at Request.emit (events.js:189:13)
at Request. (D:\Work\aztek-api\node_modules@madisonreed\amazon-payments\node_modules\request\request.js:978:14)
at Request.emit (events.js:194:15)
at IncomingMessage. (D:\Work\aztek-api\node_modules@madisonreed\amazon-payments\node_modules\request\request.js:929:12)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1103:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant