Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

404 error when import a junit xml test report to JIRA - Xray

Ami Gao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 16, 2024

Hi guys,

I am trying to import/upload junit xml test report and want it is attached to a XRAY JIRA ticket. However, I am getting error:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<status>
<status-code>404</status-code>
</status>

my curl is :

--header 'Authorization: Basic [xxxxxxxxx]'
--form 'file=@"/automation_test.xml"'

Does anyone met the same issue?

Thanks,
Ami Gao

2 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Nicolas Grossi
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.
June 16, 2024
0 votes
Nicolas Grossi
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.
June 16, 2024

@Ami Gao Welcome! The uri appears to be wrong try another one for example up to import section https://xxxxx.atlassian.net/rest/raven/1.0/import

 

HTH

Nicolas

Ami Gao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 17, 2024

Hi Nicolas,

Thanks for the assistance. Since our company use XRAY DC, I was using wrong api to send the request. But now I get another problem 

{
"error": "Invalid xml file: Non-whitespace before first tag. Line: 0 Column: 1 Char: -"
}
Do you have any thought about what should I do?

Thanks,
Ami 
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events