Skip to content

Commit

Permalink
removed response.config and response.request from axios error
Browse files Browse the repository at this point in the history
Caused circular JSON error when stringifying, no fun
  • Loading branch information
jorgtho committed May 27, 2022
1 parent b8c433e commit 29590a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/archive.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const callArchive = async (payload, e18JobId, e18TaskId, endpoint) => {
}

logger('error', ['archive', 'aiaiaiaiai', status, message || data])
delete error.response.config
delete error.response.request
throw error.response
}
}
Expand Down

0 comments on commit 29590a8

Please sign in to comment.