Calling basic the Get Issue API returns a 403.
URL:
https://{myorg}.atlassian.net/rest/api/3/issue/{issue_id}
stopped working April 27, 2025 - from the server. No code changed. This call works just fine if I make the same call using curl on the machine
Returns 403 error: Forbidden: Error
return axios({
method: options.method || 'GET',
headers: { Authorization: `Basic ${basicAuthToken}` },
url,
data,
}).then(res => res)
.catch(error => this.getJiraError(error));
}
Works fine from the same machine
curl --location 'https://{myorg}.atlassian.net/rest/api/3/issue/157159' --header 'Authorization: Basic {base64token'}
Answering my own question for anyone who has to support legacy Node application making requests to atlassian apis.
My current theory is that Axios .26 is just not compatible at the protocol level.
We changed it to fetch calls and it works fine:
FROM:
return axios({
method: options.method || 'GET',
headers: { Authorization: `Basic ${basicAuthToken}` },
url,
data,
}).then(res => res)
TO:
return fetch(url, reqOptions).then(res => res.json().then((result) => {
console.log('JIRA FETCH REQUEST RESULT', url, result);
return { data: result };
}))
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.