Skip Menu |

This queue is for tickets about the App-metacpansearch CPAN distribution.

Report information
The Basics
Id: 122012
Status: open
Priority: 0/
Queue: App-metacpansearch

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.01
Fixed in: (no value)



Subject: Searching does not work anymore (api.metacpan.org v0 is gone)
Trying cpans seems to fail: $ /opt/perl-5.24.1/bin/perl /opt/perl-5.24.1/bin/cpans malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /opt/perl-5.24.1/bin/cpans line 39. Probably this is caused by the shutdown of the metacpan v0 API: $ strace -eread -s512 /opt/perl-5.24.1/bin/perl /opt/perl-5.24.1/bin/cpans |& grep 410 read(3, "HTTP/1.1 410 Gone\r\nServer: Varnish\r\nRetry-After: 0\r\nContent-Type: text/html\r\nContent-Length: 557\r\nAccept-Ranges: bytes\r\nDate: Mon, 05 Jun 2017 16:15:00 GMT\r\nVia: 1.1 varnish\r\nConnection: close\r\nX-Served-By: cache-hhn1548-HHN\r\nX-Cache: MISS\r\nX-Cache-Hits: 0\r\nX-Timer: S1496679300.249647,VS0,VE1\r\n\r\n<!DOCTYPE html>\n<html>\n <head>\n <title>MetaCPAN v0 API</title>\n <style type=\"text/css\">\n body {\n font-family: sans-serif;\n }\n </style>\n <link rel=\""..., 1024) = 854
Wow, I forgot about this app! I wonder if anyone else uses it -- do you use it often? I'll try to fix it ASAP but it might be a bit before it comes to the top of my TODO list. On Mon Jun 05 12:16:37 2017, SREZIC wrote: Show quoted text
> Trying cpans seems to fail: > > $ /opt/perl-5.24.1/bin/perl /opt/perl-5.24.1/bin/cpans > malformed JSON string, neither tag, array, object, number, string or > atom, at character offset 0 (before "(end of string)") at /opt/perl- > 5.24.1/bin/cpans line 39. > > Probably this is caused by the shutdown of the metacpan v0 API: > > $ strace -eread -s512 /opt/perl-5.24.1/bin/perl /opt/perl- > 5.24.1/bin/cpans |& grep 410 > read(3, "HTTP/1.1 410 Gone\r\nServer: Varnish\r\nRetry-After: > 0\r\nContent-Type: text/html\r\nContent-Length: 557\r\nAccept-Ranges: > bytes\r\nDate: Mon, 05 Jun 2017 16:15:00 GMT\r\nVia: 1.1 > varnish\r\nConnection: close\r\nX-Served-By: cache-hhn1548-HHN\r\nX- > Cache: MISS\r\nX-Cache-Hits: 0\r\nX-Timer: > S1496679300.249647,VS0,VE1\r\n\r\n<!DOCTYPE html>\n<html>\n > <head>\n <title>MetaCPAN v0 API</title>\n <style > type=\"text/css\">\n body {\n font-family: > sans-serif;\n }\n </style>\n <link > rel=\""..., 1024) = 854
Actually I am not a user --- I just stumbled over the problem in another application (matrix.cpantesters.org) and did a systematic search of CPAN distributions using the metacpan v0 api. Regards, Slaven On 2017-06-05 14:04:03, AWWAIID wrote: Show quoted text
> Wow, I forgot about this app! I wonder if anyone else uses it -- do > you use it often? I'll try to fix it ASAP but it might be a bit before > it comes to the top of my TODO list. > > On Mon Jun 05 12:16:37 2017, SREZIC wrote:
> > Trying cpans seems to fail: > > > > $ /opt/perl-5.24.1/bin/perl /opt/perl-5.24.1/bin/cpans > > malformed JSON string, neither tag, array, object, number, string or > > atom, at character offset 0 (before "(end of string)") at /opt/perl- > > 5.24.1/bin/cpans line 39. > > > > Probably this is caused by the shutdown of the metacpan v0 API: > > > > $ strace -eread -s512 /opt/perl-5.24.1/bin/perl /opt/perl- > > 5.24.1/bin/cpans |& grep 410 > > read(3, "HTTP/1.1 410 Gone\r\nServer: Varnish\r\nRetry-After: > > 0\r\nContent-Type: text/html\r\nContent-Length: 557\r\nAccept-Ranges: > > bytes\r\nDate: Mon, 05 Jun 2017 16:15:00 GMT\r\nVia: 1.1 > > varnish\r\nConnection: close\r\nX-Served-By: cache-hhn1548-HHN\r\nX- > > Cache: MISS\r\nX-Cache-Hits: 0\r\nX-Timer: > > S1496679300.249647,VS0,VE1\r\n\r\n<!DOCTYPE html>\n<html>\n > > <head>\n <title>MetaCPAN v0 API</title>\n <style > > type=\"text/css\">\n body {\n font-family: > > sans-serif;\n }\n </style>\n <link > > rel=\""..., 1024) = 854
I'm a user! On Mon Jun 05 14:04:03 2017, AWWAIID wrote: Show quoted text
> Wow, I forgot about this app! I wonder if anyone else uses it -- do > you use it often? I'll try to fix it ASAP but it might be a bit before > it comes to the top of my TODO list. > > On Mon Jun 05 12:16:37 2017, SREZIC wrote:
> > Trying cpans seems to fail: > > > > $ /opt/perl-5.24.1/bin/perl /opt/perl-5.24.1/bin/cpans > > malformed JSON string, neither tag, array, object, number, string or > > atom, at character offset 0 (before "(end of string)") at /opt/perl- > > 5.24.1/bin/cpans line 39. > > > > Probably this is caused by the shutdown of the metacpan v0 API: > > > > $ strace -eread -s512 /opt/perl-5.24.1/bin/perl /opt/perl- > > 5.24.1/bin/cpans |& grep 410 > > read(3, "HTTP/1.1 410 Gone\r\nServer: Varnish\r\nRetry-After: > > 0\r\nContent-Type: text/html\r\nContent-Length: 557\r\nAccept-Ranges: > > bytes\r\nDate: Mon, 05 Jun 2017 16:15:00 GMT\r\nVia: 1.1 > > varnish\r\nConnection: close\r\nX-Served-By: cache-hhn1548-HHN\r\nX- > > Cache: MISS\r\nX-Cache-Hits: 0\r\nX-Timer: > > S1496679300.249647,VS0,VE1\r\n\r\n<!DOCTYPE html>\n<html>\n > > <head>\n <title>MetaCPAN v0 API</title>\n <style > > type=\"text/css\">\n body {\n font-family: > > sans-serif;\n }\n </style>\n <link > > rel=\""..., 1024) = 854
Subject: [rt.cpan.org #122012] Searching does not work anymore (api.metacpan.org v0 is gone)
Date: Mon, 7 Aug 2017 11:41:30 +0200
To: bug-App-metacpansearch [...] rt.cpan.org
From: Gian Piero Carrubba <gpiero [...] rm-rf.it>
Please consider applying the attached patch (simply using the new URL). Thanks, Gian Piero.

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #122012] Searching does not work anymore (api.metacpan.org v0 is gone)
Date: Mon, 7 Aug 2017 15:20:51 +0200
To: bug-App-metacpansearch [...] rt.cpan.org
From: Gian Piero Carrubba <gpiero [...] rm-rf.it>
* [Mon, Aug 07, 2017 at 11:41:30AM +0200] Gian Piero Carrubba: Show quoted text
>Please consider applying the attached patch (simply using the new URL).
Actually, the attached patch is more polite (both wrt metacpan servers and user's network resources) as it only requests needed fields. Best, Gian Piero.

Message body is not shown because sender requested not to inline it.