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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Unable to submit Xray Test Execution evidences pdf file using XRAY REST API


I have been trying to use below Xray REST API 1.0/2.0 to PUT/POST pdf evidences file as attachement to Xray Test execution record. Facing below error:

Not sure if pdf attachement is supported

Value does not resolve to a primitive type: a Web Service. Connection Name: AuthXray, target: rest:untyped?method=POST&bodyStyle=JSONConnecting to website. Address: https://jira.*****.net/rest/raven/1.0/api/testrun/*****

Neither the Body nor Attachments/Parts were suppliedReading response. Content Type: text/html; charset=us-ascii, Encoding: nullThe REST response could not be read. Address: https://jira.****.net/rest/raven/1.0/api/testrun/*****, Reason: Server returned HTTP response code: 411 for URL: https://jira.****.net/rest/raven/1.0/api/testrun/*****, Error:

Length Required


HTTP Error 411. The request must be chunked or have a content length.


End point URL usedhttps://jira.****.net/rest/raven/2.0/api/testrun/*****

JSON Body:

"status": "FAIL",
"data":"encodedStringFile", # this file holds the encoded string
"filename": "Summary.pdf",
"contentType": "application/pdf"

Appreciate any response or help in this regard !




1 answer

1 accepted

0 votes
Answer accepted

Hi @Tushar Daharwal 

Concerning the concrete error you're having, you'll need to provide more information so I recommend you reach out Xray support and the team will be glad to help you out.

Best REgards, 



Solution Architect and Testing Advocate @Xray

Personal blog on testing, Agile, and software development:

Follow me on Twitter:

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events