XRay Cloud Importing JUnit report Unauthorized Access

Neelesh April 21, 2021

1. POST: https://xray.cloud.xpand-it.com/api/v1/import/execution/junit?testExecKey=TOS-17

2. Client ID and Secret are correct and used at API key setting in POSTMAN.

3. Content-Type : text/xml

4. Body has Binary type attached an XML

5. Almost tried all the stuff from forum but no luck.

6. The execution key is present and I am able to access the key through the browser.

Getting 401 unauthorised with "{"error":"Could not find authentication data on request"}" message. 

Many thanks for the help.

4 answers

0 votes
Lee Cheetham August 7, 2023

Hi Did anyone resolve this?  I am seeing the exact same issue?

0 votes
kavi mahadeo February 10, 2022

Hello am facing the same issue
can i get some assist?

Rogério Paiva - Xray Xporter
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.
February 21, 2022

Hi @kavi mahadeo 

If my previous answer below does not help, is it best to contact the Xray Support (http://xraysupport.xpand-it.com ) so that we can request additional information and help further.

Kind regards,
Rogério Paiva [Xray Support Team]

Like kavi mahadeo likes this
0 votes
Rogério Paiva - Xray Xporter
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.
May 17, 2021

Hi @Neelesh 

The error suggests that there is an issue with the way the authentication information is being sent.

Have you generated a token? Or are you using the Client ID and Secret directly in the import REST API?

If you didn't generate a token then that is the problem (https://docs.getxray.app/display/XRAYCLOUD/Authentication+-+REST).

If you are using the token already, please try the curl examples found in the documentation page (https://docs.getxray.app/display/XRAYCLOUD/Import+Execution+Results+-+REST#ImportExecutionResultsREST-JUnitXMLresults).

If you need additional help, please contact the Xray Support (http://xraysupport.xpand-it.com ) so that we can request additional information and help further.

Kind regards,
Rogério Paiva [Xray Support Team]

0 votes
Neelesh April 23, 2021

Any one. Pls help.

Suggest an answer

Log in or Sign up to answer