HTTP error before end of send, stop sending

I am using the example code to upload an attachment to JIRA and I get this error. Does anybody know what this means?

8 answers

1 accepted

I can't believe it. A stupid user error. ARGGGGGGGGGGGGGGGGG!

Thank you Tim.

0 vote

Which example code?

Although, that error usually means your network has failed for some reason - pulling a network cable, proxy server not letting you in, packet loss etc.

0 vote

Which example code?

Although, that error usually means your network has failed for some reason - pulling a network cable, proxy server not letting you in, packet loss etc.

0 vote
Timothy Chin Community Champion Apr 29, 2013

What error?

Here is the code:

curl.exe -D- -v -u xxxx:xxxx -X POST -H "X-Atlassian-Token: nocheck" -F "file=@c:\\logs\\AIFDBScripts.zip" http://mysite/jira/rest/api/2/issue/SR-2414/attachment

The error is: HTTP error before end of send, stop sending

Timothy Chin Community Champion Apr 29, 2013

Are you sure that this is the only response? What is the respond code?

* HTTP error before end of send, stop sending

<

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>404</status-code><message>null for uri: http://10.24

9.88.155/jira/rest/api/2/issue/SR-2320/attachment</message></status>* Closing connection 0

0 vote
Timothy Chin Community Champion Apr 30, 2013

It's /rest/api/2/issue/{issueIdOrKey}/attachments not attachment (unless its a different in another API http://docs.atlassian.com/jira/REST/5.2.11/#id167094).

This is closed.

You close these by marking one or more answers as correct. I'd recommend your "user error" one :-)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

770 views 2 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you