kentnl / CPAN-Distribution-ReleaseHistory

Show the release history of a single distribution
Other
0 stars 0 forks source link

api.metacpan.org v0 api is gone #2

Open eserte opened 7 years ago

eserte commented 7 years ago

t/live-moo-history.t currently fails:

#   Failed test 'Created release iterator OK'
#   at t/live-moo-history.t line 77.
#          got: '[Request] ** [http://api.metacpan.org:80]-[410] <!DOCTYPE html>
# <html>
#     <head>
#         <title>MetaCPAN v0 API</title>
#         <style type="text/css">
#             body {
#                 font-family: sans-serif;
#             }
#         </style>
#         <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
#     </head>
#     <body>
#         <h1>MetaCPAN v0 API has been has been shut down!</h1>
#         <p>
#             See the <a href="https://github.com/metacpan/metacpan-api/blob/master/docs/API-docs.md">MetaCPAN v1 API</a> should be used instead.
#         </p>
#     </body>
# </html>, called from sub Search::Elasticsearch::Client::5_0::Direct::scroll_helper at /Users/eserte/.cpan/build/2017060515/CPAN-Distribution-ReleaseHistory-0.002005-0/blib/lib/CPAN/Distribution/ReleaseHistory.pm line 206. With vars: {'request' => {'body' => {'sort' => {'stat.mtime' => 'asc'},'query' => {'term' => {'distribution' => 'Moo'}}},'qs' => {'scroll' => '5m','stored_fields' => 'name,version,date,status,maturity,stat,download_url','size' => 1000},'method' => 'POST','serialize' => 'std','path' => '/v0/release/_search','ignore' => [],'mime_type' => 'application/json'},'status_code' => 410}
# '
#     expected: undef
# undef

#   Failed test 'Get release 0 OK'
#   at t/live-moo-history.t line 89.
#          got: 'Can't call method "next_release" on an undefined value at t/live-moo-history.t line 86.
# '
#     expected: undef
# Can't call method "next_release" on an undefined value at t/live-moo-history.t line 86.
# Looks like you failed 2 tests of 3.
t/live-moo-history.t .................................................... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/3 subtests 
kentfredric commented 7 years ago

Thanks :). I'll get onto this soon.