Fix error I observed in logs

> TypeError: Cannot read properties of undefined (reading 'method')
This commit is contained in:
Manav Rathi 2024-05-20 11:43:10 +05:30
parent d7bd0f0200
commit c2edac6192
No known key found for this signature in database

View file

@ -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,