Forums

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

Access via REST API does not work any more

Robert Hölzl November 16, 2018

We are not able any more to access our (self-hosted) JIRA software via REST API.

It worked without problems but since about one weeks JIRA reports authentication errors.

We tested with different clients (PyCharm, GitLab, JIRAClient) and from different IP Addresses. All of them report authentication problems (although I definitely entered the correct passwort)

2 answers

1 accepted

0 votes
Answer accepted
Thomas Deiler
Community Champion
November 17, 2018

Dear @Robert Hölzl,

this sounds like something spooky. But in the end something must have changed in your system. Either:

  • Jira Version
  • Firewall 
  • Operating System update
  • Network
  • SSL Certificates
  • etc ...

Can you find out, what change has been made since the past week?

So long

Thomas

Robert Hölzl November 20, 2018

The only known change is the firewall (its a simple NAT router without complex filtering or introspection between us in intranet and jira in intranet). To be sure that this is not the problem I connected to JIRA already via Mobile Phone to avoid this router => same result.

----

But then I looked into the JIRA REST API and saw, that the URL "https://jira.baltech.de/rest/api/latest/issue/FW-1" should be usable for testing. Requesting this URL on a browser that is logged in (via cookie) works fine (I get the expected JSON  data). Running it on a browser which is not logged in returns:

"{"errorMessages":["You do not have the permission to see the specified issue.","Login Required"],"errors":{}}"

I expected the not-logged-in browser to ask me for username/passwort?!?

Is the browser usable as "referenz test" tool at all, to check if JIRA REST API installation is working/get clear error messages?

All other JIRA clients I am using are reporting very less information about the problem.

Thomas Deiler
Community Champion
December 10, 2018

Dear @Robert Hölzl,

the browser is "partially" usable. Best you download a browser extension like "RESTClient". There you use "basic authentication" and add as custom header "Content-Type: application/json" when POSTing data to the REST API.

So long

Thomas 

Robert Hölzl December 11, 2018

In the meantime it works again. I don't know why (the setup was not changed at all)...

But thanks for your hint.

If the problem occurs again, I have a tool to identify if the JIRA server or the JIRA client causes trouble.

0 votes
Nic Brough -Adaptavist-
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.
November 17, 2018

Ok, so the question is what did you change (probably in Jira, as you've tried different clients)?

And what are the authentication errors you get?  They might help you locate what changed.

Like Deleted user likes this

Suggest an answer

Log in or Sign up to answer