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

Lib throws error Cannot read properties of undefined (reading 'data') when have newErrorHandling is true

Moser-ss opened this issue · comments

The lib throws the error Cannot read properties of undefined (reading 'data') when the newErrorHandling is true
I believe the issue happens because the error object doesn't contain the response object
https://github.com/MrRefactoring/jira.js/blob/master/src/clients/baseClient.ts#L108

Hi @Moser-ss! Thank you for reporting!

Should work now (in v2.15.2)