You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
We are currently using the Basic Authorization in the request.
When making a web request to the Jira Standard API endpoint "rest/api/3/project/{projectKeyOrId}", the request intermittently returns a 404 error response after some requests.
{projectKeyOrId} is passed through the smart variables.
We are using Jira Standard version, and it's not clear why the 404 error response is occurring.
Could you please share what could be causing the issue ?
welcome to the community.
Could you please give some more information? What is the exact call?
Do you use a certain app to send the request?
Hello Kai, thank you so much for responding.
I am using the component Send web request as part of my Jira automation and getting the {{ProjectKey}} from "Create variable".
https://<domain>/rest/api/3/project/{{ProjectKey}}.
Using Basic Authorization to send the request.
But the Jira automation fails after one call with the following error:-
{"errorMessages":["No project could be found with key 'XXXX'."],"errors":{}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
could you please make sure, that {{ProjectKey}} has a value. You could use log action to push the value of the variable to the audit log.
And could you make sure, that you have provided valid credentials with your request.
If you are not identified correctly, that the api will not list any projects and you will get the "No project could be found with key 'XXXX'." error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the quick response. ProjectKey has a value as the rule once run with the correct values but fails the second time. I have used the valid credentials to send the request but i will use the log action to check the value of the variable in the audit log. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In addition, check the attached screenshot for a reference regarding authorization:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have removed the Accept header from the request and magically it is working now. I will try to test few more cases and see how it goes.
Thank you so much Kai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Got the correct projectKey in the audit logs.
Disabled and enabled the rule with no changes in the automation rule and it failed again with 404 error message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Munish Thakur could you try to make a call via another tool or terminal command like curl.
It is a little hard to debug, but I guess there is still something wrong with the authorization.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It works perfectly fine with Postman and even with terminal with the same authorization.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have access to the specific project? Or might there be something missing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes i do because if the access was missing then the automation should fail the first time. I know this is kind of weird.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.