Forums

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

Curl upload returns (55) Send failure

ChrisNgai
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 23, 2023

Hi, recently I tried to import my cucumber test result to jira Xray but getting the error

curl -u USERNAME:PASSWORD -F info=@jiraInfo.json -F result=@cucumber_report.json  https://myCompanyJiraServer/rest/raven/1.0/import/execution/cucumber/multipart

but return below:

curl: (55) Send failure: Connection was reset 

 or 

curl: (56) Send failure: Connection was reset

I have tested another curl command:

curl -u USERNAME:PASSWORD -k -v https://myCompanyJiraServer/jira/rest/api/2/issue/TICKET-1 

 and it works

1 answer

0 votes
Sunny Ape
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.
April 23, 2023

Hello @ChrisNgai 

Since you omitted cURL's -X parameter to declare the connection type as POST, the error isn't surprising.

You may want to review cURL's online documentation again.

ChrisNgai
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 25, 2023
curl -u USERNAME:PASSWORD -X POST -F info=@jiraInfo.json -F result=@cucumber_report.json https://myCompanyJiraServer/rest/raven/1.0/import/execution/cucumber/multipart

 Result return : 

curl: (56) Send failure: Connection was reset
Sunny Ape
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.
April 26, 2023

Given that you're submitting a multipart data request, it's not clear how you think the connection will work if you omit the -H parameter and don't declare "Content-Type: multipart/form-data" in the header.

I think I'll leave you with this now.

Suggest an answer

Log in or Sign up to answer