Rest works in browser but not from node-jira-client

osmanraifgunes November 25, 2019

I am calling rest from browser and it brings projects. But when i call via using jira-client library (https://github.com/jira-node/node-jira-client) it returns this:

{    "self""https://osmanraifgunes.atlassian.net/rest/api/3/project/search?password=generatedtoken&maxResults=50&startAt=0&username=osmanraifgunes",    "maxResults"50,    "startAt"0,    "total"0,    "isLast"true,    "values": []}

 

1 answer

1 accepted

0 votes
Answer accepted
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 25, 2019

Hi @osmanraifgunes ,

I believe the problem is in authentication.

Please, try to use the email address that was used to generate the token, when you create Authorization header for your request.

I've got the same response, when I had provided an invalid e-mail.

Suggest an answer

Log in or Sign up to answer