Skip to content

Commit 9ac5673

Browse files
committed
fix: remove node request objects from detailed response
This will prevent the circular JSON error when attempting to stringify the detailed response
1 parent 2a525b0 commit 9ac5673

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/requestwrapper.ts

+2
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ export function sendRequest(parameters, _callback) {
291291

292292
axios(extend(true, {}, options, requestParams))
293293
.then(res => {
294+
delete res.config;
295+
delete res.request;
294296
// the other sdks use the interface `result` for the body
295297
_callback(null, res.data, res);
296298
})

0 commit comments

Comments
 (0)