Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • jira api work if from home pc, but not on company pc (of specific country, regardless vpn or no)

jira api work if from home pc, but not on company pc (of specific country, regardless vpn or no)

John Sheng March 12, 2022

I use postman to test api:

1) this one is always work (in home pc, in company pc with or without vpn). I use this as example that postman and api call is working from my pc (home or work) generally.

curl -k -o zephyrscale.txt --location -H "Authorization:Bearer xyz" --request GET https://api.zephyrscale.smartbear.com/v2/testcases/test-T1/testscript

 

 2)this one work in home pc, but not in company pc (in vpn or without vpn)

curl -k -o jira.txt --location -H "Authorization:Basic xyz" --request GET https://xxx.atlassian.net/rest/api/3/search?jql=key=w-18
Note1: for the Authorization, I go to https://id.atlassian.com/manage-profile/security/api-tokens -> create api token, then create base64 (of my_company_email:token).

Note2: the response from command line:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 104 0 104 0 0 130 0 --:--:-- --:--:-- --:--:-- 130

Note3: the output file show this error:
{"errorMessages":["Issue does not exist or you do not have permission to see it."],"warningMessages":[]}

Note4: I asked coworker who are in the same country as me, he get same error. I then ask another cowkrer who are in other country, it actually work.

Note5: 1st api call use Bearer token. I am not sure if it play an role here.

The above observation suggest I have permission to access jira. but something unique to my company pc (of specific country) combined with something else cause the permission issue. 

Any insight?

0 answers

Suggest an answer

Log in or Sign up to answer