Skip to content

Commit

Permalink
fix: remove node request objects from detailed response
Browse files Browse the repository at this point in the history
This will prevent the circular JSON error when attempting to stringify the detailed response
  • Loading branch information
dpopp07 committed May 24, 2019
1 parent 2a525b0 commit 9ac5673
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/requestwrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ export function sendRequest(parameters, _callback) {

axios(extend(true, {}, options, requestParams))
.then(res => {
delete res.config;
delete res.request;
// the other sdks use the interface `result` for the body
_callback(null, res.data, res);
})
Expand Down

0 comments on commit 9ac5673

Please sign in to comment.