unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Nikita Karetnikov <nikita.karetnikov@gmail.com>
To: 13095@debbugs.gnu.org
Subject: bug#13095: http-get: Throw to key `bad-response' with args `("EOF while reading response body: ...)'
Date: Thu, 6 Dec 2012 02:20:45 +0300	[thread overview]
Message-ID: <CAD15K4u2H5HETmEqvRGyoPW+ArYpo-XYQ3X=EyMeuTyE1h0PcA@mail.gmail.com> (raw)

Hi,

I'm using Guile 2.0.7. 'http-get' fails to download the file.

scheme@(guile-user)> (http-get (string->uri
"http://citylan.dl.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2"))
ERROR: In procedure get-bytevector-all:
ERROR: Throw to key `bad-response' with args `("EOF while reading
response body: ~a bytes of ~a" (12731 421971))'.

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,bt
In web/client.scm:
    131:4  1 (http-get #<<uri> scheme: http userinfo: #f host: "cit…> …)
In unknown file:
           0 (get-bytevector-all #<input: r6rs-custom-binary-input-p…>)

$ wget --spider
http://citylan.dl.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2
Spider mode enabled. Check if remote file exists.

[...]

Length: 421971 (412K) [application/octet-stream]
Remote file exists.

Also, check this thread. [1]

Nikita

[1] https://lists.gnu.org/archive/html/bug-guix/2012-12/msg00033.html





             reply	other threads:[~2012-12-05 23:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-05 23:20 Nikita Karetnikov [this message]
2012-12-08 19:59 ` bug#13095: http-get: Throw to key `bad-response' with args `("EOF while reading response body: ...)' Ian Price
2012-12-08 20:06   ` Ian Price
2012-12-08 20:47     ` Ian Price
     [not found]       ` <87d2ykqkiy.fsf@zigzag.favinet>
2012-12-08 23:39         ` Ludovic Courtès
2012-12-10 13:45           ` dsmich
2013-01-12 14:47       ` Ian Price

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAD15K4u2H5HETmEqvRGyoPW+ArYpo-XYQ3X=EyMeuTyE1h0PcA@mail.gmail.com' \
    --to=nikita.karetnikov@gmail.com \
    --cc=13095@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).