Forums

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

Getting null for uri 404 Not Found when importing JSON result file in Xray

Wajahat Haider March 17, 2022

I am making a POST request using POSTMAN and using cloud.

 

POST | https://wajahatsqae.atlassian.net/rest/api/v2/import/execution

 

I am also putting JSON Body containing execution results.

 

Issue: Getting this response 

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<status>
    <status-code>404</status-code>
    <message>null for uri: https://wajahatsqae.atlassian.net/rest/api/v2/import/execution</message>
</status>

1 answer

1 accepted

1 vote
Answer accepted
Stefan Salzl
Community Champion
March 17, 2022

Hi @Wajahat Haider 

Welcome to the Atlasssian Community ;)

A few question that came to my mind:

Hope this helps to solve your problem.

Best
Stefan

Wajahat Haider March 17, 2022

Thanks @Stefan Salzl for answering,

 

Yes I have checked importing the result file manually into XRAY to validate if the JSON result format is correct and its getting imported successfully.

 

After running this

https://xray.cloud.xpand-it.com/api/v2/import/execution

and using Bearer Token in POSTMAN that I generated earlier.

 

It gives me this reponse:

 

{"error":"Invalid JWT: JsonWebTokenError: jwt malformed"}
Stefan Salzl
Community Champion
March 17, 2022

Could you add your whole call?

Wajahat Haider March 17, 2022

Could you please give an example what else needed in call ?

Stefan Salzl
Community Champion
March 17, 2022

Did you create the seperate XRAY API key and token as described here ?

I´m only used to import JUnit xml results. This is an example of my call:

 

curl -H "Content-Type: text/xml" -X POST \

          -H "Authorization: Bearer $TOKEN"  \

          --data @"test-results.xml" https://xray.cloud.getxray.app/api/v2/import/execution/junit?testExecKey={key}

 

Best
Stefan

Wajahat Haider March 17, 2022

Thanks @Stefan Salzl , Successfully made a call :)

Like Stefan Salzl likes this
Stefan Salzl
Community Champion
March 17, 2022

AWESOME!!! great to hear you´ve been successful 🙌🙌🙌

Happy testing ;)

Suggest an answer

Log in or Sign up to answer