You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.
I obtain this error when I call to getDeposits method:
TypeError: Cannot read property 'resource' of undefined
at onGet (/var/lib/openshift/5562dcd5500446389000024c/app-root/runtime/repo/node_modules/coinbase/lib/model/AccountBase.js:61:62)
at Request.onGet as _callback
at Request.self.callback (/var/lib/openshift/5562dcd5500446389000024c/app-root/runtime/repo/node_modules/coinbase/node_modules/request/request.js:344:22)
at Request.emit (events.js:98:17)
at Request. (/var/lib/openshift/5562dcd5500446389000024c/app-root/runtime/repo/node_modules/coinbase/node_modules/request/request.js:1239:14)
at Request.emit (events.js:117:20)
at IncomingMessage. (/var/lib/openshift/5562dcd5500446389000024c/app-root/runtime/repo/node_modules/coinbase/node_modules/request/request.js:1187:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickCallback (node.js:442:13)
The first problem is that lib/model/AccountBase.js:61 does not handle an empty data array.
The second problem (and the origin) is that, the result array is always empty, even if there are deposits.
I see that in the same file, other onGet methods use: obj.data.resource instead of result.data[0].resource. Could this be related?
I obtain this error when I call to getDeposits method:
TypeError: Cannot read property 'resource' of undefined
at onGet (/var/lib/openshift/5562dcd5500446389000024c/app-root/runtime/repo/node_modules/coinbase/lib/model/AccountBase.js:61:62)
at Request.onGet as _callback
at Request.self.callback (/var/lib/openshift/5562dcd5500446389000024c/app-root/runtime/repo/node_modules/coinbase/node_modules/request/request.js:344:22)
at Request.emit (events.js:98:17)
at Request. (/var/lib/openshift/5562dcd5500446389000024c/app-root/runtime/repo/node_modules/coinbase/node_modules/request/request.js:1239:14)
at Request.emit (events.js:117:20)
at IncomingMessage. (/var/lib/openshift/5562dcd5500446389000024c/app-root/runtime/repo/node_modules/coinbase/node_modules/request/request.js:1187:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickCallback (node.js:442:13)
And the code is:
Any Idea?
The text was updated successfully, but these errors were encountered: