GNU bug report logs - #43711
http-get fails parse response header

Previous Next

Package: guile;

Reported by: Nic Berggren <nicberggren <at> hotmail.com>

Date: Tue, 29 Sep 2020 19:19:02 UTC

Severity: normal

To reply to this bug, email your comments to 43711 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#43711; Package guile. (Tue, 29 Sep 2020 19:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nic Berggren <nicberggren <at> hotmail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Tue, 29 Sep 2020 19:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nic Berggren <nicberggren <at> hotmail.com>
To: "bug-guile <at> gnu.org" <bug-guile <at> gnu.org>
Subject: http-get fails parse response header
Date: Tue, 29 Sep 2020 18:14:39 +0000
[Message part 1 (text/plain, inline)]
I am running GNU Guile 3.0.4 on MacOS Catalina.

When trying http-get to retrieve json from the Swedish smhi opendata i get this error:
In web/client.scm:
   525:24  5 (http-request _ #:body _ #:verify-certificate? _ #:port _ #:method _ # ?)
In web/response.scm:
   200:48  4 (read-response #<input-output: string 10b2198c0>)
In web/http.scm:
   225:33  3 (read-headers #<input-output: string 10b2198c0>)
   195:11  2 (read-header _)
    252:2  1 (parse-non-negative-integer _ _ _)
In ice-9/boot-9.scm:
  1669:16  0 (raise-exception _ #:continuable? _)

Reproduce like this:
scheme@(guile-user) [2]> (use-modules (web client))
scheme@(guile-user) [4]> (http-get "https://opendata-download-metobs.smhi.se/api/version/1.0/parameter.json" #:verify-certificate? #f)

Regards
Nic
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.