-
Notifications
You must be signed in to change notification settings - Fork 121
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
jwt retry changes in v1.31.0 encounter undefined #476
Comments
box-node-sdk/lib/api-request.js:308
|
@lukesiler We have a fix for this and are in the process of implementing it. It seems that the response is not being returned. In an effort to figure out why this may be happening, do you mind logging |
We merged the fix in this PR #477. We will do a release sometime in the next few weeks. |
@sujaygarlanka - Thanks for the quick response and fix. I'll try to log those and will post here if I'm able to trap another occurrence. |
Description of the Issue
When JWT retry code is triggered, an undefined property exception occurs trying to read hasOwnProperty
Versions Used
Node SDK: v1.31.0
Node.js: node:12.13-stretch-slim
Steps to Reproduce
use box-node-sdk to download files via files.getReadStream and occasionally a JWT AuthError will occur triggering retry.
Error Message, Including Stack Trace
TypeError: Cannot read property 'hasOwnProperty' of undefined at APIRequest._retry (/opt/pryon/contapp/node_modules/�[4mbox-node-sdk�[24m/lib/api-request.js:308:27) at APIRequest._handleResponse (/opt/pryon/contapp/node_modules/�[4mbox-node-sdk�[24m/lib/api-request.js:256:9) at self.callback (/opt/pryon/contapp/node_modules/�[4mrequest�[24m/request.js:185:22)
[sdk-docs]: ./docs
[api-docs]: https://developer.box.com/
The text was updated successfully, but these errors were encountered: