MrRefactoring / jira.js

A JavaScript/TypeScript wrapper for the JIRA Cloud, Service Desk and Agile REST API

Home Page:https://mrrefactoring.github.io/jira.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AxiosError: Request failed with status code 404 with V3 client

jpan8866 opened this issue · comments

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" }
            })

Everything works with Version2Client

Looks like I can close it as resolved