GNU bug report logs - #21032
package.el acts pecularly

Previous Next

Package: emacs;

Reported by: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>

Date: Fri, 10 Jul 2015 19:34:02 UTC

Severity: minor

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

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 21032 in the body.
You can then email your comments to 21032 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#21032; Package emacs. (Fri, 10 Jul 2015 19:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 10 Jul 2015 19:34:02 GMT) Full text and rfc822 format available.

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

From: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: package.el acts pecularly
Date: Fri, 10 Jul 2015 12:19:09 +0530
(custom-set-variables
  '(package-archives
   (quote
    (("gnu" . "http://elpa.gnu.org/packages/")
     ("ung" . "http://elpa.gnu.org/")))))


Do M-x list-packages, the messages buffer reports the following.

| Error contacting: http://elpa.gnu.org/archive-contents
| error in process filter: peculiar error: 404 [2 times]

I think package.el should offer to remove (or blacklist)
"misconfigured" archives or "disappeared" archives.  At the minimum,
it shouldn't throw 404-s in user's face.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21032; Package emacs. (Sat, 11 Jul 2015 10:22:01 GMT) Full text and rfc822 format available.

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

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>
Cc: 21032 <at> debbugs.gnu.org
Subject: Re: bug#21032: package.el acts pecularly
Date: Sat, 11 Jul 2015 11:21:50 +0100
[Message part 1 (text/plain, inline)]
> I think package.el should offer to remove (or blacklist)
> "misconfigured" archives or "disappeared" archives.  At the minimum,
> it shouldn't throw 404-s in user's face.

Can we differentiate them from an archive that is temporarily down?
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21032; Package emacs. (Sat, 11 Jul 2015 22:59:02 GMT) Full text and rfc822 format available.

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

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>
Cc: 21032 <at> debbugs.gnu.org
Subject: Re: bug#21032: package.el acts pecularly
Date: Sat, 11 Jul 2015 23:58:51 +0100
[Message part 1 (text/plain, inline)]
> We can definitely improve upon how the error gets reported.

Certainly. Patches welcome. :-)

>     Error contacting: http://blah.blah.blah:/archive-contents
>     error in process filter: peculiar error: 404 [2 times]
>
> To the user, the first error gives sufficient hint for futher action.
> I wonder what the second error says which the first error already
> doesn't say.

The second error is saying that the page was not found. I imagine other
things that can happen are request time-out and certificate issues.

The 404 error is so well known that I'm not too worried about confusing the
user. I'd rather not hide this possibility-useful information in fear that
someone might be freaked out by it.

But improving its presentation is certainly possible.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21032; Package emacs. (Sun, 12 Jul 2015 01:33:02 GMT) Full text and rfc822 format available.

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

From: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>
To: bruce.connor.am <at> gmail.com
Cc: 21032 <at> debbugs.gnu.org
Subject: Re: bug#21032: package.el acts pecularly
Date: Sun, 12 Jul 2015 00:50:35 +0530
On Saturday 11 July 2015 03:51 PM, Artur Malabarba wrote:
>> I think package.el should offer to remove (or blacklist)
>> > "misconfigured" archives or "disappeared" archives.  At the minimum,
>> > it shouldn't throw 404-s in user's face.
> Can we differentiate them from an archive that is temporarily down?
> 

We can definitely improve upon how the error gets reported.

    Error contacting: http://blah.blah.blah:/archive-contents
    error in process filter: peculiar error: 404 [2 times]

To the user, the first error gives sufficient hint for futher action.
I wonder what the second error says which the first error already
doesn't say.  Or may be there is indeed two errors and not one error
as I surmise.

ps: I wonder what contacting a file means :-P.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21032; Package emacs. (Sun, 12 Jul 2015 02:29:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Artur Malabarba <bruce.connor.am <at> gmail.com>
Cc: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>, 21032 <at> debbugs.gnu.org
Subject: Re: bug#21032: package.el acts pecularly
Date: Sat, 11 Jul 2015 22:28:33 -0400
> The 404 error is so well known that I'm not too worried about confusing the
> user.

No, 404 is not well-known enough.  I for one have no idea which kind of
error this is (other than "the host itself was OK since got a reply, but
the file part of the URL lead to some kind of problem", and I wouldn't
assume every user to know that much).


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21032; Package emacs. (Sun, 12 Jul 2015 08:07:02 GMT) Full text and rfc822 format available.

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

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>, 21032 <at> debbugs.gnu.org
Subject: Re: bug#21032: package.el acts pecularly
Date: Sun, 12 Jul 2015 09:06:23 +0100
[Message part 1 (text/plain, inline)]
On Jul 12, 2015 3:28 AM, "Stefan Monnier" <monnier <at> iro.umontreal.ca> wrote:
>
> > The 404 error is so well known that I'm not too worried about confusing
the
> > user.
>
> No, 404 is not well-known enough.  I for one have no idea which kind of
> error this is (other than "the host itself was OK since got a reply, but
> the file part of the URL lead to some kind of problem", and I wouldn't
> assume every user to know that much).

Actually, I think in that instance it was the server part that led to the
problem. However, I _think_ package.el (or url.el) doesn't have the
information to say that. That is, we would get the same error whether it's
an issue in the server part or the file part, wouldn't we?

Anyway, like I said, I'm fine with improving the error message. I just
meant I prefer the message to still say 404 somewhere (or whatever the
error code was).
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21032; Package emacs. (Sun, 12 Jul 2015 08:10:02 GMT) Full text and rfc822 format available.

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

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>
Cc: 21032 <at> debbugs.gnu.org
Subject: Re: bug#21032: package.el acts pecularly
Date: Sun, 12 Jul 2015 09:09:36 +0100
[Message part 1 (text/plain, inline)]
On Jul 12, 2015 6:37 AM, "Vaidheeswaran C" <
vaidheeswaran.chinnaraju <at> gmail.com> wrote:
>
> On Sunday 12 July 2015 04:28 AM, Artur Malabarba wrote:
>
>
> >>     Error contacting: http://blah.blah.blah:/archive-contents
> >>     error in process filter: peculiar error: 404 [2 times]
>
> > The second error is saying that the page was not found.
>
> Removing the second error and rewording the first error is good enough
> for me.  Actually speaking, there is no "second" error.  There is only
> one error.

Yes, it would be nice to improve the error message.

> The peculiar error is coming from `edebug-report-error'.  I really
> think that user doesn't care much about the "innermost" errors.  So,
> catching such errors and re-throwing it is a good idea.  Even if one
> (as a developer) wants to see the "inner" errors, the *Messages*
> should reflect the "innerness" of the fact by (say) parenthesizing it.

Sounds great. :-)
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21032; Package emacs. (Sun, 12 Jul 2015 15:04:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Artur Malabarba <bruce.connor.am <at> gmail.com>
Cc: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>, 21032 <at> debbugs.gnu.org
Subject: Re: bug#21032: package.el acts pecularly
Date: Sun, 12 Jul 2015 11:03:18 -0400
> Actually, I think in that instance it was the server part that led to the
> problem.

Really?  I thought a 404 came from the remote server, which implies that
we managed to contact the server (i.e. the DNS name points to a live
machine).


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21032; Package emacs. (Sun, 12 Jul 2015 15:17:01 GMT) Full text and rfc822 format available.

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

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>, 21032 <at> debbugs.gnu.org
Subject: Re: bug#21032: package.el acts pecularly
Date: Sun, 12 Jul 2015 16:16:07 +0100
You're right. I misread the original message. I thought the user had
configured an invalid server, but I see now they just specified an
invalid file in the (valid) server.

2015-07-12 16:03 GMT+01:00 Stefan Monnier <monnier <at> iro.umontreal.ca>:
>> Actually, I think in that instance it was the server part that led to the
>> problem.
>
> Really?  I thought a 404 came from the remote server, which implies that
> we managed to contact the server (i.e. the DNS name points to a live
> machine).
>
>
>         Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21032; Package emacs. (Sun, 12 Jul 2015 17:28:02 GMT) Full text and rfc822 format available.

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

From: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>
To: bruce.connor.am <at> gmail.com
Cc: 21032 <at> debbugs.gnu.org
Subject: Re: bug#21032: package.el acts pecularly
Date: Sun, 12 Jul 2015 11:07:04 +0530
On Sunday 12 July 2015 04:28 AM, Artur Malabarba wrote:


>>     Error contacting: http://blah.blah.blah:/archive-contents
>>     error in process filter: peculiar error: 404 [2 times]

> The second error is saying that the page was not found.

Removing the second error and rewording the first error is good enough
for me.  Actually speaking, there is no "second" error.  There is only
one error.

The peculiar error is coming from `edebug-report-error'.  I really
think that user doesn't care much about the "innermost" errors.  So,
catching such errors and re-throwing it is a good idea.  Even if one
(as a developer) wants to see the "inner" errors, the *Messages*
should reflect the "innerness" of the fact by (say) parenthesizing it.


> I imagine other things that can happen are request time-out and
> certificate issues.

(The following pertains to url-http and may not concern package.el)

One way to handle the 404 (or for that matter any error) is to replace
it with it's string counterpart in `url-http-codes'.  If the error
code takes a "parameter", we can also convert entries like this:

    (404 not-found "Not found")

to

    (404 not-found "%s Not found")

etc.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21032; Package emacs. (Tue, 08 Feb 2022 07:29:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com>
Cc: 21032 <at> debbugs.gnu.org
Subject: Re: bug#21032: package.el acts pecularly
Date: Tue, 08 Feb 2022 08:28:00 +0100
Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com> writes:

> (custom-set-variables
>   '(package-archives
>    (quote
>     (("gnu" . "http://elpa.gnu.org/packages/")
>      ("ung" . "http://elpa.gnu.org/")))))
>
> Do M-x list-packages, the messages buffer reports the following.
>
> | Error contacting: http://elpa.gnu.org/archive-contents
> | error in process filter: peculiar error: 404 [2 times]
>
> I think package.el should offer to remove (or blacklist)
> "misconfigured" archives or "disappeared" archives.  At the minimum,
> it shouldn't throw 404-s in user's face.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

It looks like this has been fixed somewhat since this bug was reported.
It now reports:

Error retrieving: http://elpa.gnu.org/archive-contents (error http 404)

Which seems like a reasonable error message.

I don't think it would be appropriate to remove or block the URLs -- the
failure may be temporary, and it should be up to the user to remove the
archives themselves, so I'm therefore closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 21032 <at> debbugs.gnu.org and Vaidheeswaran C <vaidheeswaran.chinnaraju <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 08 Feb 2022 07:29: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. (Tue, 08 Mar 2022 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 119 days ago.

Previous Next


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