MrRefactoring / jira.js

A JavaScript/TypeScript wrapper for the JIRA Cloud, Service Desk and Agile REST API
https://mrrefactoring.github.io/jira.js/
MIT License
349 stars 46 forks source link

AxiosError: Request failed with status code 404 with V3 client #276

Closed jpan8866 closed 9 months ago

jpan8866 commented 10 months ago

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" }
            })
jpan8866 commented 10 months ago

Everything works with Version2Client

MrRefactoring commented 9 months ago

Looks like I can close it as resolved