-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Description
In implementing the rest client I ran into this error which may be caused by this snippet of code below. I removed it from my own code and I did not run into the bug again. I am using Node 8 with async/await so I am not using callbacks in the first place.
cybersource-rest-client-node/src/ApiClient.js
Lines 536 to 551 in 7da3789
request.end(function (error, response) { | |
if (callback) { | |
var data = null; | |
if (!error) { | |
try { | |
data = _this.deserialize(response, returnType); | |
if (_this.enableCookies && typeof window === 'undefined') { | |
_this.agent.saveCookies(response); | |
} | |
} catch (err) { | |
error = err; | |
} | |
} | |
callback(error, data, response); | |
} | |
}); |
Metadata
Metadata
Assignees
Labels
No labels