AxiosError: Request failed with status code 404 with V3 client
jpan8866 opened this issue · comments
John Pan commented
Hello,
I have set up both service desk client and jira service client as follows:
const agent = new https.Agent({
rejectUnauthorized: false,
})
const config: jiraClient.Config = {
host: "https://jira.wnst.int.bell.ca",
authentication: {
basic: {
username: user,
password: password,
},
},
baseRequestConfig: {
httpsAgent: agent
}
};
export const serviceDeskClient = new jiraClient.ServiceDeskClient(config)
export const jiraServiceClient = new jiraClient.Version3Client(config)
While service desk client works like a charm, jira service client does not, and always gives me a 404. There is no error message (undefined)
Example:
await jiraServiceClient.issues.doTransition({
issueIdOrKey: "IWR-12345",
transition: { id: "621" }
})
John Pan commented
Everything works with Version2Client
Vladislav Tupikin commented
Looks like I can close it as resolved