From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: stp@ekioh.com Newsgroups: gmane.emacs.bugs Subject: bug#26148: 25.1; Results from eww DuckDuckGo searches cannot be loaded Date: Fri, 17 Mar 2017 20:50:14 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1489793423 20785 195.159.176.226 (17 Mar 2017 23:30:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Mar 2017 23:30:23 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.1.1 To: 26148@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 18 00:30:18 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cp1K1-0004VF-Jn for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Mar 2017 00:30:13 +0100 Original-Received: from localhost ([::1]:51215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cp1K7-0005uv-JB for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Mar 2017 19:30:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cp1Jv-0005oL-Rf for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 19:30:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cp1Jr-0007tI-Ud for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 19:30:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34835) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cp1Jr-0007tE-Pm for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 19:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cp1Jr-0005JS-Jg for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 19:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: stp@ekioh.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Mar 2017 23:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26148 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148979339420362 (code B ref -1); Fri, 17 Mar 2017 23:30:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Mar 2017 23:29:54 +0000 Original-Received: from localhost ([127.0.0.1]:33032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cp1Jg-0005II-Ll for submit@debbugs.gnu.org; Fri, 17 Mar 2017 19:29:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coypS-0001HB-Ui for submit@debbugs.gnu.org; Fri, 17 Mar 2017 16:50:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coypM-0001Pn-OR for submit@debbugs.gnu.org; Fri, 17 Mar 2017 16:50:25 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43696) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1coypM-0001Ph-L3 for submit@debbugs.gnu.org; Fri, 17 Mar 2017 16:50:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coypK-0001FT-4n for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 16:50:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coypF-0001Nv-Nx for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 16:50:22 -0400 Original-Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:35579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1coypF-0001NI-GW for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 16:50:17 -0400 Original-Received: by mail-wm0-x232.google.com with SMTP id u132so24369942wmg.0 for ; Fri, 17 Mar 2017 13:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ekioh-com.20150623.gappssmtp.com; s=20150623; h=from:user-agent:to:subject:date:message-id:mime-version; bh=PoUD/5mPX19vHKAndK56VaNJqdALtg0M7QmlnAf2yT8=; b=K0ske0lXzvc01fg6AbU2aOnOiHyJMAawGSqov8kEyKP93d48ic/k2RQgAQ2TzohvsE hkomXkFrfxvcBTQhiih49Af00soMQEORt/E/4ioCNwN5FqxAXwhkr4GEjQWaJcMs1lQt a0fZ3cQ1XspwRVBHn4dgw6vJfRPwju4kCpiYsBfE6xE7X5abXiNbc6UW0qkIMfzcFZEV LqiI8EENS2srkz8jV7Hbp2B5s5fRjNPl2lAxBIflU/Ltqkb8Y/XXa3DD/8iOCtXJVsXw DhXOhGwi+i8s0K9oyj8r1NBuIspaWlEPvawrqxNwblyw7JzPeep+1e5ibRorz6RxzWOj +YTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:user-agent:to:subject:date:message-id :mime-version; bh=PoUD/5mPX19vHKAndK56VaNJqdALtg0M7QmlnAf2yT8=; b=KbYQamMrTBoZ/TwOwwdi4UimcTgyjaACSHqseBiXQk3vfMiz1SpHeaDUTmXvWEA4aw 16i8zUUBHXH/U3aEuvZZG6LLPwnKIFt8PZWA8RhT+KnQxg4pxMTBDFGnBF25R6FgguTH tEvdu2yUluAFyjV4dVAeiUXchnEzF5bb6zld67IHqxwkuF/cpYOjJ3SSvKpm+U67ZEjY PogYenSg2L3Y/SiBC6LgzgdmbxH6+azQBcjflbCOom2UCQ9gxk8yUFCsKCuuEnrzLMkZ msgeQBequAuIDuo/uCtcMaA0CDxGpv3pfIL30Q3+mAKZ1ARckwRESHZYK0N5nCmZ9vhm KKtw== X-Gm-Message-State: AFeK/H2ltdrmeHhiTCLC0FyVndiwz+E2RmcbL2DSKFVOG82imOIDHzRJfXxexeadUOFp+g== X-Received: by 10.28.217.136 with SMTP id q130mr148249wmg.132.1489783815629; Fri, 17 Mar 2017 13:50:15 -0700 (PDT) Original-Received: from localhost (cpc4-papw5-2-0-cust294.5-3.cable.virginm.net. [81.102.145.39]) by smtp.gmail.com with ESMTPSA id u184sm3880525wmb.29.2017.03.17.13.50.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Mar 2017 13:50:15 -0700 (PDT) X-Google-Original-From: stevoooo@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 17 Mar 2017 19:29:51 -0400 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: 208.118.235.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:130683 Archived-At: Found in Emacs 25.1.1 but looks to be the same on master. Using emacs -Q, run M-x eww to do a search and then click on one of the search results - the following error page will be displayed: 'Oops, there was an error. Please try again. If it persists, please email ops@duckduckgo.com' This appears to be due to DDG trying to use a redirect to load the result - this can be disabled (see https://duckduckgo.com/params for details) by adding "kd=-1" to the query string in the URL in which case the results can be loaded as expected. Turning off redirects is less secure, but as we're using HTTPS anyway this shouldn't be a problem (see https://duckduckgo.com/privacy#s5). Should be able to fix with: diff --git a/lisp/net/eww.el b/lisp/net/eww.el index c9f4e61..0066f54 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -49,7 +49,7 @@ eww-header-line-format :group 'eww :type 'string) -(defcustom eww-search-prefix "https://duckduckgo.com/html/?q=" +(defcustom eww-search-prefix "https://duckduckgo.com/html/?kd=-1&q=" "Prefix URL to search engine." :version "24.4" :group 'eww Cheers!