unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#43711: http-get fails parse response header
@ 2020-09-29 18:14 Nic Berggren
  0 siblings, 0 replies; only message in thread
From: Nic Berggren @ 2020-09-29 18:14 UTC (permalink / raw)
  To: 43711

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-29 18:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 18:14 bug#43711: http-get fails parse response header Nic Berggren

unofficial mirror of bug-guile@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guile-bugs/0 guile-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guile-bugs guile-bugs/ https://yhetil.org/guile-bugs \
		bug-guile@gnu.org
	public-inbox-index guile-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.lisp.guile.bugs
	nntp://news.gmane.io/gmane.lisp.guile.bugs


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git