Forums

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

HTTP error before end of send, stop sending

James Youngman
Contributor
April 29, 2013

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

2 accepted

3 votes
Answer accepted
James Youngman
Contributor
April 30, 2013

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

Thank you Tim.

1 vote
Answer accepted
Timothy
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 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).

0 votes
James Youngman
Contributor
May 5, 2013

This is closed.

Nic Brough -Adaptavist-
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 5, 2013

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

0 votes
James Youngman
Contributor
April 29, 2013

* 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 votes
James Youngman
Contributor
April 29, 2013

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
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 29, 2013

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

0 votes
Timothy
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 29, 2013

What error?

0 votes
Nic Brough -Adaptavist-
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 29, 2013

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 votes
Nic Brough -Adaptavist-
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 29, 2013

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.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events