Hi, I want my app to remove users from selected group(s) but Jira REST API returns status 400 SyntaxError: Unexpected end of JSON input.
Here is my code:
@yagizhan14 could you show the actual code of your app, specifically the part where it logs the 400 status and the SyntaxError: Unexpected end of JSON input error message?
The error you experience is most likely related to the empty body in the response (which ends with 200 status code). The solution would be to process the response as text and not as a json e.g.
const request = await api.asUser().requestJira(route`/rest/xxxxxx`);
const result = await request.text();