I have developed a functionality for my client recently. I was using below two APIs for the same.
- /rest/api/2/user/search?username= → To get user details
- /rest/api/2/issue → to create a Jira issue
Both these APIs were working fine till now. But suddenly from few days they are returning 500 error from JIRA. This is issue in just my Production Environment. I don’t have this issue in my local and Dev environments.
In my Production server, I can access the jira apis as a normal user, but when we get in as nodejs user its throwing this error. Can someone help me here?
Error Log -
message": {
“message”: “Request failed with status code 503”,
“name”: “AxiosError”,
“stack”: “AxiosError: Request failed with status code 503\n at settle (/ABC/DEF/APP_V01/node_modules/axios/dist/node/axios.cjs:2097:12)\n at IncomingMessage.handleStreamEnd (/ABC/DEF/APP_V01/node_modules/axios/dist/node/axios.cjs:3305:11)\n at /dynatrace/oneagent/agent/bin/1.311.79.20250515-130846/any/nodejs/nodejsagent.js:2018:48\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at A.runInContext (/dynatrace/oneagent/agent/bin/1.311.79.20250515-130846/any/nodejs/nodejsagent.js:2065:37)\n at IncomingMessage.handleStreamEnd (/dynatrace/oneagent/agent/bin/1.311.79.20250515-130846/any/nodejs/nodejsagent.js:2018:18)\n at IncomingMessage.emit (node:events:530:35)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at /dynatrace/oneagent/agent/bin/1.311.79.20250515-130846/any/nodejs/nodejsagent.js:2018:48\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Axios.request (/ABC/DEF/APP_V01/node_modules/axios/dist/node/axios.cjs:4483:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /ABC/DEF/APP_V01/router/migProRouter.js:2287:18”,
“config”: {
“transitional”: {
“silentJSONParsing”: true,
“forcedJSONParsing”: true,
“clarifyTimeoutError”: false
},
“adapter”: [
“xhr”,
“http”,
“fetch”
],
“transformRequest”: [
null
],
“transformResponse”: [
null
],
“timeout”: 0,
“xsrfCookieName”: “XSRF-TOKEN”,
“xsrfHeaderName”: “X-XSRF-TOKEN”,
“maxContentLength”: -1,
“maxBodyLength”: -1,
“env”: {},
“headers”: {
“Accept”: “application/json, text/plain, /”,
“Content-Type”: “application/json”,
“Authorization”: “Bearer ”,
“User-Agent”: “axios/1.12.2”,
“Accept-Encoding”: “gzip, compress, deflate, br”
},
“httpsAgent”: {
“_events”: {},
“_eventsCount”: 2,
“options”: {},
“requests”: {},
“sockets”: {},
“freeSockets”: {},
“keepAliveMsecs”: 1000,
“keepAlive”: false,
“maxSockets”: null,
“maxFreeSockets”: 256,
“scheduling”: “lifo”,
“maxTotalSockets”: null,
“totalSocketCount”: 0,
“proxy”: cloudproxy-d.nat.company.com:8080/,
“proxyHeaders”: {},
“connectOpts”: {
“ALPNProtocols”: [
“http/1.1”
],
“host”: cloudproxy-d.nat.company….,
“port”: 8080
}
},
“method”: “get”,
“url”: “https://mobius-jira.company.com/rest/api/2/user/search?username=satwik@company.com”,
“allowAbsoluteUrls”: true
},
“code”: “ERR_BAD_RESPONSE”,
“status”: 503
}
}