From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= Newsgroups: gmane.lisp.guile.user Subject: Re: open-socket-for-uri returns string, but integer is needed Date: Sat, 30 Jan 2021 06:29:46 -0800 Message-ID: References: <20210130073542.Horde.fnEmi9P7VryWvgZpnJCOvPv@www.stihie.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21446"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: mbcladwell@stihie.net Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Jan 30 15:31:02 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5rHB-0005U3-TJ for guile-user@m.gmane-mx.org; Sat, 30 Jan 2021 15:31:01 +0100 Original-Received: from localhost ([::1]:37444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5rHA-0000v5-Hp for guile-user@m.gmane-mx.org; Sat, 30 Jan 2021 09:31:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5rGD-0000uy-PJ for guile-user@gnu.org; Sat, 30 Jan 2021 09:30:01 -0500 Original-Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:42032) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5rGB-0004sv-UB for guile-user@gnu.org; Sat, 30 Jan 2021 09:30:01 -0500 Original-Received: by mail-pg1-x534.google.com with SMTP id g15so8579761pgu.9 for ; Sat, 30 Jan 2021 06:29:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=a7a3kRvpdWUcBRX/euPhvL3k31DKfISkQe87YfOWArA=; b=b0gTC3jp4lT5tHXedtFln6bLimboy4kPTc+NZxJK2d9E9YN+fdRkLfyKYPPZQqTXBm 9yyBxr0wuVjogkG1B45iLgDLgF/C9aE/fNBYXKC+iePTm7U1+16hJ4ECVYJ6KoC19SIy Fx2+87l1mMVIdntS6Yq8eQWCjCUaA3Vyg7dVY50gofI4PG6og1TNr8FNBSCG8OyovbUW x4iEs1f5Jcg70LalVl/bGTuHWloDnYMBTjEfq/OhjOoz4/eWhqt/XwxRwiAkYEyoDuRN tmYTMwwTMqaBp49pOrDQQDQXC6g7yZn78XHdK8325KUECJ+LpT3D4zty225J7D4arXiQ pxTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=a7a3kRvpdWUcBRX/euPhvL3k31DKfISkQe87YfOWArA=; b=ki0ARe1N98IMmZxAzlWenhdSBrz1BbO3UZMMB1RmxwSi35xNQ8a51tKHIFKDkbd7BP tG0CbU/CJgtO0HjUPuGSJmHIMQpIA7h8MIc4FqBPKeI8KacTr4ma2W9tB5G1nFapg64B xSgb8Q0W2IEb305CtixoYYwiPBcfZDJ0JOYOOIi+08Z0F9YhiioGHJ31gSTC0Hg5niD/ A9iyJDkCKDcfZj53LvUQfMZ1gTP0s3hqwcoWujPcCU8XU8h2hfuugA99y+1LWChOcSgU qWYVl3IV1ukZ7TBWZenJLDXVPS4xa4FiLfbvYKsKwd2oqfwaieIAobWqv9Mo6m8PG6w9 1HtA== X-Gm-Message-State: AOAM530Fl1WbjRFj4Z/m5h8ngDWZoLDg1ty3DoJLHldA1QwZrx8VK2By 6hKTt+V9beaGpyF9vPnxO123Qlg/lEjRK/ehEaNOijtiNO0= X-Google-Smtp-Source: ABdhPJzsxOnUSBryLdUlgNASHnHjj5E4v/KwnA/aWPDCWemaD0GkvXM4vuYCnk60zR9Ja03rp8UWLbHjvH96ynGR/vM= X-Received: by 2002:a63:2262:: with SMTP id t34mr9143228pgm.166.1612016997711; Sat, 30 Jan 2021 06:29:57 -0800 (PST) In-Reply-To: <20210130073542.Horde.fnEmi9P7VryWvgZpnJCOvPv@www.stihie.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=aconchillo@gmail.com; helo=mail-pg1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, WEIRD_PORT=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17202 Archived-At: 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 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 = # > scheme@(guile-user)> (open-socket-for-uri "http://localhost:3000/123") > $2 = # > 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 > > >