unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Nic Berggren <nicberggren@hotmail.com>
To: 43711@debbugs.gnu.org
Subject: bug#43711: http-get fails parse response header
Date: Tue, 29 Sep 2020 18:14:39 +0000	[thread overview]
Message-ID: <HE1P190MB053894A3A74DE9478B61F739A7320@HE1P190MB0538.EURP190.PROD.OUTLOOK.COM> (raw)

[-- Attachment #1: Type: text/plain, Size: 795 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2389 bytes --]

                 reply	other threads:[~2020-09-29 18:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=HE1P190MB053894A3A74DE9478B61F739A7320@HE1P190MB0538.EURP190.PROD.OUTLOOK.COM \
    --to=nicberggren@hotmail.com \
    --cc=43711@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).