GNU bug report logs - #26148
25.1; Results from eww DuckDuckGo searches cannot be loaded

Previous Next

Package: emacs;

Reported by: stp <at> ekioh.com

Date: Fri, 17 Mar 2017 23:30:03 UTC

Severity: normal

Tags: notabug

Found in version 25.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26148 in the body.
You can then email your comments to 26148 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#26148; Package emacs. (Fri, 17 Mar 2017 23:30:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to stp <at> ekioh.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 17 Mar 2017 23:30:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: stp <at> ekioh.com
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1; Results from eww DuckDuckGo searches cannot be loaded
Date: Fri, 17 Mar 2017 20:50:14 +0000
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 <at> 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!




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26148; Package emacs. (Fri, 02 Jun 2017 06:03:01 GMT) Full text and rfc822 format available.

Message #8 received at 26148 <at> debbugs.gnu.org (full text, mbox):

From: Tim Landscheidt <tim <at> tim-landscheidt.de>
To: stp <at> ekioh.com
Cc: 26148 <at> debbugs.gnu.org
Subject: Re: bug#26148: 25.1;
 Results from eww DuckDuckGo searches cannot be loaded
Date: Fri, 02 Jun 2017 06:02:38 +0000
I could confirm this bug some time ago, but duckduckgo.com
seems to have fixed something on their part in the mean time
and it now works with eww-search-prefix set to the default
"https://duckduckgo.com/html/?q=".  Does the bug still occur
for you?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26148; Package emacs. (Fri, 02 Jun 2017 12:01:01 GMT) Full text and rfc822 format available.

Message #11 received at 26148 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Perry <stp <at> ekioh.com>
To: Tim Landscheidt <tim <at> tim-landscheidt.de>
Cc: 26148 <at> debbugs.gnu.org
Subject: Re: bug#26148: 25.1; Results from eww DuckDuckGo searches cannot be
 loaded
Date: Fri, 2 Jun 2017 13:00:38 +0100
> On 2 Jun 2017, at 07:02, Tim Landscheidt <tim <at> tim-landscheidt.de> wrote:
> 
> I could confirm this bug some time ago, but duckduckgo.com
> seems to have fixed something on their part in the mean time
> and it now works with eww-search-prefix set to the default
> "https://duckduckgo.com/html/?q=".  Does the bug still occur
> for you?

You’re right, I can’t see the problem anymore.  I guess something has been changed by DDG.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26148; Package emacs. (Fri, 02 Jun 2017 22:46:01 GMT) Full text and rfc822 format available.

Message #14 received at 26148 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Stephen Perry <stp <at> ekioh.com>
Cc: 26148 <at> debbugs.gnu.org, Tim Landscheidt <tim <at> tim-landscheidt.de>
Subject: Re: bug#26148: 25.1;
 Results from eww DuckDuckGo searches cannot be loaded
Date: Fri, 02 Jun 2017 18:47:25 -0400
# not an Emacs bug
tags 26148 notabug
close 26148
quit

Stephen Perry <stp <at> ekioh.com> writes:

>> On 2 Jun 2017, at 07:02, Tim Landscheidt <tim <at> tim-landscheidt.de> wrote:
>> 
>> I could confirm this bug some time ago, but duckduckgo.com
>> seems to have fixed something on their part in the mean time
>> and it now works with eww-search-prefix set to the default
>> "https://duckduckgo.com/html/?q=".  Does the bug still occur
>> for you?
>
> You’re right, I can’t see the problem anymore.  I guess something has been changed by DDG.

Closing, as this seems to have been a bug on the remote end.




Added tag(s) notabug. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Fri, 02 Jun 2017 22:46:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 26148 <at> debbugs.gnu.org and stp <at> ekioh.com Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Fri, 02 Jun 2017 22:46:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 01 Jul 2017 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 301 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.