Skip to content

Commit 2501074

Browse files
authored
fix: include some error.request fields (#39)
1 parent 18d17f6 commit 2501074

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envoy/envoy-integrations-sdk",
3-
"version": "2.0.0-beta.28",
3+
"version": "2.0.0-beta.29",
44
"description": "SDK for building Envoy integrations.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/util/axiosConstructor.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ export function createAxiosClient(config?: AxiosRequestConfig | undefined): Axio
77
}, (error) => {
88
const safeError = {
99
code: error.code,
10+
request: {
11+
baseURL: error.request?.baseURL,
12+
url: error.request?.url,
13+
method: error.request?.method,
14+
},
1015
response: {
1116
code: error.response?.code,
1217
status: error.response?.status,

0 commit comments

Comments
 (0)