From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wKMABYYNDWJ2rAAAgWs5BA (envelope-from ) for ; Wed, 16 Feb 2022 15:43:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +Nx9AoYNDWKeYAEA9RJhRA (envelope-from ) for ; Wed, 16 Feb 2022 15:43:18 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7626833FE3 for ; Wed, 16 Feb 2022 15:43:17 +0100 (CET) Received: from localhost ([::1]:52258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nKLWW-0002Mv-H6 for larch@yhetil.org; Wed, 16 Feb 2022 09:43:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKLWI-0002Jx-9m for bug-guix@gnu.org; Wed, 16 Feb 2022 09:43:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nKLWH-0007Iu-WE for bug-guix@gnu.org; Wed, 16 Feb 2022 09:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nKLWH-0001DN-TW for bug-guix@gnu.org; Wed, 16 Feb 2022 09:43:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53923: =?UTF-8?Q?=E2=80=98http-fetch=E2=80=99?= is unable to fetch Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 16 Feb 2022 14:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53923 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Xinglu Chen Received: via spool by 53923-submit@debbugs.gnu.org id=B53923.16450225734638 (code B ref 53923); Wed, 16 Feb 2022 14:43:01 +0000 Received: (at 53923) by debbugs.gnu.org; 16 Feb 2022 14:42:53 +0000 Received: from localhost ([127.0.0.1]:47827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKLW9-0001Ck-0Z for submit@debbugs.gnu.org; Wed, 16 Feb 2022 09:42:53 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:57006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKLW7-0001CT-8e for 53923@debbugs.gnu.org; Wed, 16 Feb 2022 09:42:51 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id A046BB6F; Wed, 16 Feb 2022 15:42:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rfy3ZoUqn63f; Wed, 16 Feb 2022 15:42:44 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 4FF493F9; Wed, 16 Feb 2022 15:42:44 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87czjuwqlj.fsf@yoctocell.xyz> Date: Wed, 16 Feb 2022 15:42:43 +0100 In-Reply-To: <87czjuwqlj.fsf@yoctocell.xyz> (Xinglu Chen's message of "Thu, 10 Feb 2022 18:58:48 +0100") Message-ID: <87wnhux47w.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: A046BB6F X-Spamd-Result: default: False [0.90 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; URL_IN_SUBJECT(1.00)[repology.org]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 53923@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645022597; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=0QPUk60lZxbE/9gOw7+NGKp3CQkk5vj6dTN74fXWBYc=; b=W8Go4uiXQt5+XN8yIrHfggHF0F8/XvCjZ0HzczOzPjQo54dnDpeWRANhXU42SxU7XH3is5 03bZbUWqdlaP7TLbx8jqZy55lB9gV0XjixF0XF9/yMV10h4aJ0ofuteoABys+jTqo5Urwl 5GL9Tfh2MyoUU3qELVRJzjvxITL8V7++l1dDN46AvSTt1+EEH9s7f3rY/pENnl6fVMoTb6 yjFDrEA+Vhn6UsbwJJdo2k3TfAtbPRZAuhR7DGv1Fwq2ev97mNrgzrhjEHhdhVdlqb1Dek iC8jdaF8OPV+vSGBVlX9Kh+TEoPRU/7/B9kU634DunSvlL2LfyOOGZmgYS8MAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645022597; a=rsa-sha256; cv=none; b=NLeTbs72MOxyNflgMiREEA3FW+r5EFnu612u5Gy4j476GZmz0GnEkF+WOecaNtOCGWn6to itPc7bql7KmJRCBEPpfgPMUHFfG5IObdik46/+FkgIXQCytEF+5ip9efenzi/6U3/30IIm JHb1R4FGWst08nAkEYlTxL++7rj9oWcmDRlYidMtB+1FT2y0LLbNAxnFX2DdhhE6dZU3Fq iaFBA5i8mVxkIlIMpn2z4W/dDp20uog9STvQQKk6jhXJYxzwNCnwSo28HQXFZGYHmlgPxb D31pUCKk86lMSdX0rvfpg5geW+LRY3jjpEDbpXt5HRQgvjMOWCfig9YQi0RCiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7626833FE3 X-Spam-Score: -2.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: NCXel+L2g5AD Hi, Xinglu Chen skribis: > scheme@(guile-user)> ,use(guix http-client) > scheme@(guile-user)> (http-fetch "https://repology.org/api/v1/project/ema= cs:modus-themes") > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > Bad Read-Header-Line header: # > > > Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. > scheme@(guile-user) [1]> ,bt > In guix/http-client.scm: > 120:21 5 (http-fetch _ #:port _ #:text? _ #:buffered? _ # _ # _ # =E2= =80=A6) > In web/client.scm: > 530:24 4 (http-request _ #:body _ #:verify-certificate? _ #:port =E2= =80=A6) > In web/response.scm: > 198:31 3 (read-response #) > In web/http.scm: > 1188:15 2 (read-response-line _) > 250:2 1 (read-header-line _) > In ice-9/boot-9.scm: > 1685:16 0 (raise-exception _ #:continuable? _) > > > The URL opens just fine in Icecat. =E2=80=98http-request=E2=80=99 from (= web client) is > able to handle it as well. It works if you strip the =E2=80=98User-Agent=E2=80=99 header that =E2=80= =98http-fetch=E2=80=99 provides by default: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,use(guix http-client) scheme@(guile-user)> (http-fetch "https://repology.org/api/v1/project/emacs= :modus-themes" #:headers '()) $13 =3D # $14 =3D 1342 scheme@(guile-user)> ,use(rnrs io ports) scheme@(guile-user)> (get-string-all $13) $15 =3D "[{\"repo\":\"gnu_elpa\",\"name\":\"modus-themes\",\"visiblename\":= \"modus-themes\",\"version\":\"2.0.0\",\"maintainers\":[\"info@protesilaos.= com\"],\"summary\":\"Highly accessible themes (WCAG AAA)\",\"status\":\"new= est\",\"origversion\":null},{\"repo\":\"gnuguix\",\"srcname\":\"emacs-modus= -themes\",\"binname\":\"emacs-modus-themes\",\"visiblename\":\"emacs-modus-= themes\",\"version\":\"2.0.0\",\"summary\":\"Accessible themes (WCAG AAA)\"= ,\"status\":\"newest\",\"origversion\":null},{\"repo\":\"melpa\",\"name\":\= "modus-themes\",\"visiblename\":\"modus-themes\",\"version\":\"20220215.163= 1\",\"maintainers\":[\"info@protesilaos.com\"],\"summary\":\"Highly accessi= ble and customizable themes (WCAG AAA)\",\"status\":\"rolling\",\"origversi= on\":null},{\"repo\":\"melpa_stable\",\"name\":\"modus-themes\",\"visiblena= me\":\"modus-themes\",\"version\":\"2.0.0\",\"maintainers\":[\"info@protesi= laos.com\"],\"summary\":\"Highly accessible themes (WCAG AAA)\",\"status\":= \"newest\",\"origversion\":null},{\"repo\":\"nix_stable_21_11\",\"name\":\"= emacs-modus-themes\",\"visiblename\":\"emacs-modus-themes\",\"version\":\"2= 0211114.1209\",\"maintainers\":[\"fallback-mnt-nix@repology\"],\"categories= \":[\"emacs27Packages\"],\"status\":\"untrusted\",\"origversion\":null},{\"= repo\":\"nix_unstable\",\"name\":\"emacs-modus-themes\",\"visiblename\":\"e= macs-modus-themes\",\"version\":\"20220206.751\",\"maintainers\":[\"fallbac= k-mnt-nix@repology\"],\"categories\":[\"emacs27Packages\"],\"status\":\"unt= rusted\",\"origversion\":null}]" --8<---------------cut here---------------end--------------->8--- Thanks, Ludo=E2=80=99.