From: "Aleix Conchillo Flaqué" <aconchillo@gmail.com>
To: mbcladwell@stihie.net
Cc: guile-user <guile-user@gnu.org>
Subject: Re: open-socket-for-uri returns string, but integer is needed
Date: Sat, 30 Jan 2021 06:29:46 -0800 [thread overview]
Message-ID: <CA+XASoVVtrm1vWoyez0+se0exeBjnoZ_zowxssDgb6vahjXXEw@mail.gmail.com> (raw)
In-Reply-To: <20210130073542.Horde.fnEmi9P7VryWvgZpnJCOvPv@www.stihie.net>
Hi,
This is just a guess but do you have GnuTLS Guile bindings installed? You
are using https on the first one.
In Debian I believe it's guile-gnutls.
Best,
Aleix
On Sat, Jan 30, 2021, 5:38 AM <mbcladwell@stihie.net> wrote:
>
> Hi,
> On Debian 10, Guile 3.0.4 I need to create a socket:
>
> mbc@HP8300:~$ guile
> GNU Guile 3.0.4
> Copyright (C) 1995-2020 Free Software Foundation, Inc.
> Enter `,help' for help.
> scheme@(guile-user)> (use-modules (web client))
> scheme@(guile-user)> (open-socket-for-uri
> "https://blockchain.info/q/24hrprice")
> $1 = #<input-output: file 7f09b60b0e00>
> scheme@(guile-user)> (open-socket-for-uri "http://localhost:3000/123")
> $2 = #<input-output: socket 14>
> scheme@(guile-user)>
>
> A local http looks good - returns an integer socket.
> A remote https uri returns file 7f09b60b0e00 which is rejected by
> downstream functions requiring a port/integer e.g. (http-get ....
> #:port )
>
> I get the same results on Guile 2.2.7 in a Guix protected environment.
> What am I doing wrong - how do I get an integer returned?
> Thanks
> Mortimer
>
>
>
next prev parent reply other threads:[~2021-01-30 14:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-30 13:35 open-socket-for-uri returns string, but integer is needed mbcladwell
2021-01-30 14:29 ` Aleix Conchillo Flaqué [this message]
2021-01-30 15:23 ` mbcladwell
2021-01-30 19:23 ` Aleix Conchillo Flaqué
2021-01-31 8:27 ` mbcladwell
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=CA+XASoVVtrm1vWoyez0+se0exeBjnoZ_zowxssDgb6vahjXXEw@mail.gmail.com \
--to=aconchillo@gmail.com \
--cc=guile-user@gnu.org \
--cc=mbcladwell@stihie.net \
/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).