I'm experiencing an issue with my API requests where I intermittently receive the following error message: "There was an error invoking the function - [object Object]."
Context:
I'm making requests to the Jira API using the following route:
<span>const</span> route = <span>`/rest/api/3/search?jql=<span>${jqlQuery}</span>&fields=<span>${fields}</span>&maxResults=<span>${maxResults}</span>&startAt=<span>${startAt}</span>`</span>;
For example, a typical request might look like this:
/rest/api/<span>3</span>/search?jql=project%2<span>0</span>%<span>3</span>D%2010008&fields=parent%<span>2</span>Cissuetype%<span>2</span>Cstatus%2Csummary&maxResults=<span>10</span>&startAt=<span>370</span>
Observations:
- The error occurs at random moments during multiple requests.
- There doesn't seem to be a consistent pattern or specific request that triggers the error.
Troubleshooting Steps Taken:
- I've verified that the
jqlQuery, fields, maxResults, and startAt parameters are correctly formatted and valid. - I've checked the API documentation for any rate limits or constraints that might cause this issue.
Additional Information:
Any insights or suggestions on how to debug this issue further would be greatly appreciated. Has anyone else encountered similar issues with Jira API requests?