rest call returns 200 butreturn is empty

ALAIN THIRE
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!
April 24, 2024

I try to get the list of projects with the rest api. I use a test account and use the following call

https://<prj>.atlassian.net/rest/api/3/project/

  • If I open this url inchrome I get the list of the projects
  • However if do this in postman I get an empty reply
  • I also get an empty reply in Edge
  • If I call search with a projectId , it sais that it doesn't exist

What am I doing wrong ?

Help appreciated

 

 

2 answers

0 votes
Dorene Watson May 15, 2024

@Aaron Pavez _ServiceRocket_ Following this issue. I am having the same issue in our Jira instance. We are hosted in AWS(not Atlassian cloud).   When making the GET /rest/api/2/project call from within an integration partner's software and using a bearer token that has full Admin rights, we get 200, but no data back. We've added IPs and connection is working. And I can make the call from postman with the same token and it returns data.

Why would Jira return a 200 but no data?

0 votes
Aaron Pavez _ServiceRocket_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2024

Hi @ALAIN THIRE 

Are you logged in to Atlassian when using edge?

Do you have the API token and email in postman?

Regards

Aaron

ALAIN THIRE
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!
April 25, 2024

Hi, desn't matter wether Iam logged in or not in edge

  https://atvantage.atlassian.net/rest/api/3/project/  returns in  the expected list of projects 

However if I do  the call in postman  it doesn't work 

Schermafbeelding 2024-04-25 091304.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events