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.
@Munish Thakur Did you ever figure this one out? I'm having the same problem. 200 in postman, 404 with the automation tools.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kai Becker hi! are there any updates on this issue? I believe there are a few of us experiencing the same. Calls work using terminal curl or postman but return a 404 when using the Jira automation send web request.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.