Fix error I observed in logs
> TypeError: Cannot read properties of undefined (reading 'method')
This commit is contained in:
parent
d7bd0f0200
commit
c2edac6192
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ class HTTPService {
|
|||
const responseData = response.data;
|
||||
log.error(
|
||||
`HTTP Service Error - ${JSON.stringify({
|
||||
url: config.url,
|
||||
method: config.method,
|
||||
url: config?.url,
|
||||
method: config?.method,
|
||||
xRequestId: response.headers["x-request-id"],
|
||||
httpStatus: response.status,
|
||||
errMessage: responseData.message,
|
||||
|
|
Loading…
Reference in a new issue