Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

osmanraifgunes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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 Champion
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