From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#36810: 26.2; package.el; package-refresh-contents, Bad Request (http over https) Date: Thu, 25 Jul 2019 13:35:25 -0400 Message-ID: <85ef2ej9uq.fsf@gmail.com> References: <2e1fffbb-6826-628a-e598-fcdb3ce9d89b@crabapple.me.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="142629"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) Cc: 36810@debbugs.gnu.org To: gnu@crabapple.me.uk Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 25 19:36:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqhf3-000ayl-Si for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Jul 2019 19:36:14 +0200 Original-Received: from localhost ([::1]:34424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqhf2-0000rB-EL for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Jul 2019 13:36:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41208) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqhex-0000iR-Ih for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2019 13:36:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqhew-0000S1-0F for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2019 13:36:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59797) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hqhes-0000PH-8j for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2019 13:36:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hqhes-0004Tb-5t for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2019 13:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jul 2019 17:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36810 X-GNU-PR-Package: emacs Original-Received: via spool by 36810-submit@debbugs.gnu.org id=B36810.156407613417143 (code B ref 36810); Thu, 25 Jul 2019 17:36:02 +0000 Original-Received: (at 36810) by debbugs.gnu.org; 25 Jul 2019 17:35:34 +0000 Original-Received: from localhost ([127.0.0.1]:40381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqheQ-0004SL-2v for submit@debbugs.gnu.org; Thu, 25 Jul 2019 13:35:34 -0400 Original-Received: from mail-io1-f41.google.com ([209.85.166.41]:34702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqheN-0004S1-L8; Thu, 25 Jul 2019 13:35:32 -0400 Original-Received: by mail-io1-f41.google.com with SMTP id k8so99023690iot.1; Thu, 25 Jul 2019 10:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=t5iBu+IstshpZFPRW0nMRPW2ZcoRM4Mkzlc5Z+kkNfc=; b=kS8vFkpjD4EHSDW/vZwvp3Qhpxb212BGoMpXcV1135PdmYuwP2SM7kWas99RgP1zvI yrKTmXlW2Y7Mrj5pP4hEAwuSsHlsTJ4n8jOZpKAHm1WLjxX/Hj57lP8yGazcIXhUjgng 5MESMVt7c3vgrljV8vsqmTTvcOC/2wUSXlmcaZWDaXN+uAqIPP2J8QClfWFIUHv/heu7 TyeeWdrKKqCwrnyMIPt+D9Rn6QwUzKqcin59VHukeYEsMGxxRl6p8O0vk0IKSf6dq1U6 wTEONFfmivr/zZ8+DkXZAyM2RZMob/hvIrJCbhq4u+vInN8yJ5RbWRvip1V4qrGDHk0h J8ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=t5iBu+IstshpZFPRW0nMRPW2ZcoRM4Mkzlc5Z+kkNfc=; b=LxmnK2oynxG4lL2c+nC+RuyDvU06rbC3LPhpmZVlbjNanvjeJAqilzQO+uf7mn1Y7e 3+epfu4cLgGb24PeeS0PbVx+CtdlA4OEXvufstMBfU3WOr+h8Gv5Kx12JKIm3/ZVolaF IN1UMPOfX8axTe3dYd3dVImMEnIwCDxmiOi5z8Bs5tuzztmpOQKwQm82Jw+7e5m6I6eM i1Th6GGxhXm3dlBYOQL+JaYP+ffkB4a1Lxpyadkq1nSAvWsSzU++PC8Si4eqxDprpqLJ iOdxdcDDsoVo4QXyBa2BkWnUDw1ceRQKOJkzKru3D5+CK3EDl00jvumcLsp0pBc8KePX 2Cgw== X-Gm-Message-State: APjAAAUkcxdFH6QoWvGmU7RcYAWz5MndEiIGjGdeR36ufpMfp+OzpHuK NrVBUAaAfplVE2oTdxkgUugc97yJ X-Google-Smtp-Source: APXvYqwXENR1p6LTESYPM/s0+wh7PJTc2/gBak+uj5DCGkToljr7D+ZkxxMQUqu196ypqmJcgHrDxg== X-Received: by 2002:a5d:928a:: with SMTP id s10mr56957849iom.29.1564076125901; Thu, 25 Jul 2019 10:35:25 -0700 (PDT) Original-Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id j14sm42525809ioa.78.2019.07.25.10.35.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jul 2019 10:35:25 -0700 (PDT) In-Reply-To: <2e1fffbb-6826-628a-e598-fcdb3ce9d89b@crabapple.me.uk> (gnu@crabapple.me.uk's message of "Thu, 25 Jul 2019 17:42:57 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163727 Archived-At: merge 36810 36725 quit gnu@crabapple.me.uk writes: > Replicate with: > emacs -Q > M-x package-initialize RET > M-x set-variable RET debug-on-error RET t RET > package-refresh-contents > => Debugger entered--Lisp error: (file-error > "https://elpa.gnu.org/packages/archive-contents" "Bad Request") > > In wireshark I observe a TLS1.2 session with elpa.gnu.org, terminated > from localhost, then another connection established to port 443 on > elpa.gun.org but no TLS setup and then a straight HTTP GET request (for > /packages/archive-contents). > Server responds 400 (Bad Request): > "Your browser sent a request that this server could not understand. > Reason: You're speaking plain HTTP to an SSL-enabled server port." I believe this is another case of Bug#36725/36749/34341. It should work in 26.2.90 pretest. As a workaround, doing (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") seems to help (it somehow affects the timing so as to avoid the bug).