NullPointerException when trying to pos(curl) the output.xml file from robot framework to xray jira

Suma Mahadevappa
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!
April 4, 2024

I am trying to Post the output.xml generated from the robot script to xray and for some of the output.xml I am getting Java null pointer exception. Here is the curl command I am using 

curl -D- -H "Authorization: Bearer OTM****iEZ" -X POST "https://jira.****.com/rest/raven/2.0/api/import/execution/robot?projectKey=ANDRDGPS&testExecKey=ANDRDGPS-13657" -H "Content-Type:multipart/form-data" -F "file=@output.xml"

Here is the response for the curl command

================

HTTP/1.1 100 Continue

 

HTTP/1.1 500

Date: Fri, 05 Apr 2024 00:32:44 GMT

Content-Type: application/json;charset=UTF-8

Transfer-Encoding: chunked

Connection: keep-alive

Set-Cookie: ApplicationGatewayAffinityCORS=62e8db908030efc794dd008ec277b6a5; Path=/; SameSite=None; Secure

Set-Cookie: ApplicationGatewayAffinity=62e8db908030efc794dd008ec277b6a5; Path=/

X-AREQUESTID: 32x7813446x1

X-ANODEID: jiranode02.***.com

Referrer-Policy: strict-origin-when-cross-origin

X-XSS-Protection: 1; mode=block

X-Content-Type-Options: nosniff

X-Frame-Options: SAMEORIGIN

Content-Security-Policy: sandbox

Strict-Transport-Security: max-age=31536000

Set-Cookie: JSESSIONID=BA5DA4DECF60CB432AC5433B6B346C3C; Path=/; HttpOnly

X-Seraph-LoginReason: OK

Set-Cookie: atlassian.xsrf.token=BGK6-C7MB-4LEX-JGWC_5de0bc08dc243a2154e2f4e7c99b62c80c500017_lin; Path=/

X-RateLimit-Limit: 200

X-RateLimit-Remaining: 199

X-RateLimit-FillRate: 1

X-RateLimit-Interval-Seconds: 1

Retry-After: 0

X-ASESSIONID: 1nm8efa

X-AUSERNAME: s****m1

Cache-Control: no-cache, no-transform

Vary: Accept

 

{"error":"An exception occurred while handling a v2 REST API request: java.lang.NullPointerException"}

 

The output.xml is well formed. I have checked that in an online tool. 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events