user-1
(User 1)
March 24, 2023, 3:54am
1
This topic was automatically generated from Slack. You can find the original thread here .
Hi, there! I have a workflow that synchronizes some data between Jira and Zendesk, This morning, it stopped working ({"message":"Client must be authenticated to access this resource.","status-code":401}
). I tried to connect again, with no success. Any ideas?
user-1
(User 1)
March 24, 2023, 3:54am
2
user-1
(User 1)
March 24, 2023, 3:54am
3
Does reconnecting your JIRA account help?
user-1
(User 1)
March 24, 2023, 3:54am
4
Or even after reconnecting do you have this issue?
user-1
(User 1)
March 24, 2023, 3:54am
5
, I tried to reconnect a few times. And the behavior is weird.
A call to the search API works fine:
**const** url =
https://crewhu.atlassian.net/rest/api/3/search?jql=${encodeURIComponent(jql)}``
But a call to the update API fails:
**const** result = **await** axios($, {
method: "PUT",
url: url,
headers: { Authorization:
Bearer ${this .jira.$auth.oauth_access_token} },
data: {
"fields": {
[cfZendeskTicketStatuses]: {"version":1,"type":"doc",
"content": [{"type":"paragraph","content":[{"type":"text","text":statuses}]}] }
}
}
});
WIth the message "Client must be authenticated to access this resource."
.
And I did not change anything in my user permissions in Jira… Just crazy…
user-1
(User 1)
March 24, 2023, 3:54am
6
Is there a way within the JIRA to view your current account scopes?
user-1
(User 1)
March 24, 2023, 3:54am
7
Maybe that’ll give a clue to help narrow this down
user-1
(User 1)
March 24, 2023, 3:54am
8
I am not sure if we are in the same page, but when I remove and reauthorize, this is what happens:
user-1
(User 1)
March 24, 2023, 3:54am
9
And this, from inside Jira:
user-1
(User 1)
March 24, 2023, 3:54am
10
Thanks that’s helpful to see all scopes available.
And which action are you trying to take in JIRA specifically with your workflow?
user-1
(User 1)
March 24, 2023, 3:54am
11
user-1
(User 1)
March 24, 2023, 3:54am
12
Sure enough, you can see editing issues is permitted.
user-1
(User 1)
March 24, 2023, 3:54am
13
I have to believe this is some kind of scopes respecting issue on JIRAs end
user-1
(User 1)
March 24, 2023, 3:54am
14
If your other calls are passing with the same auth tokens, then it must be some kind of authorization error in the API.
user-1
(User 1)
March 24, 2023, 3:54am
15
Makes sense. The crazy thing is that it was working yesterday…
user-1
(User 1)
March 24, 2023, 3:54am
16
Yup agreed, if the code didn’t change then it’s something outside of the workflow that’s wrong.
Since you reconnected your account and we can see the scope is included, then it must be a bug in JIRA.
user-1
(User 1)
March 24, 2023, 3:54am
18
Yes, I will contact them. Thanks!
user-1
(User 1)
March 24, 2023, 3:54am
19
Hey, , just an update in this matter:
I opened a ticket with Jira, waiting on them
As a workaroung, I created an API Token in Jira, and connected to it with Basic Authorization <user>:<API Token>, it is now working. However, I cannot take advantage of Pipedream Connected Accounts feature, which is not so nice. As a suggestion, what about having a Basic Authentication for Jira as well as OAuth?
Thanks for your help!
user-1
(User 1)
March 24, 2023, 3:54am
20
Glad to hear you found a workaround.
I don’t think we’d publish a separate yet same name app just for a different auth method.
But I think the idea of different auth methods per app is interesting.