Bad Request 400 Java Script Jira Cloud

Hi everyone,

i dont know why but a script which create several issues in our jira cloud is failing due to this error. on the sandbox everything is working fine. could someone help please since i’m not a developer and the developer which write this code has left our company.

[AxiosError: Request failed with status code 400] {
Jan 17 13:27:47 IP node[29536]:   code: 'ERR_BAD_REQUEST',
Jan 17 13:27:47 IP node[29536]:   config: {
Jan 17 13:27:47 IP node[29536]:     transitional: {
Jan 17 13:27:47 IP node[29536]:       silentJSONParsing: true,
Jan 17 13:27:47 IP node[29536]:       forcedJSONParsing: true,
Jan 17 13:27:47 IP node[29536]:       clarifyTimeoutError: false
Jan 17 13:27:47 IP node[29536]:     },

Error at the end:

 (node:29536) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined
Jan 17 13:27:47 IP node[29536]:     at getIssuesRecusive (/var/www/js/node/server.js:131:19)
Jan 17 13:27:47 IP node[29536]:     at runMicrotasks (<anonymous>)
Jan 17 13:27:47 IP node[29536]:     at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jan 17 13:27:47 IP node[29536]:     at async init (/var/www/js/node/server.js:39:9)
Jan 17 13:27:47 IP node[29536]: (node:29536) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise 

Cheers
Toni