It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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 Nov 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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you