-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I have a minicpan volume and wanted to index it via index-cpan.sh, but it seems to fail:
2019/10/26 15:20:04 I release: Processing /CPAN/authors/id/M/MI/MIYAGAWA/Acme-Module-Authors-0.01.tar.gz
2019/10/26 15:20:04 F release: /CPAN/authors/id/M/MI/MIYAGAWA/Acme-Module-Authors-0.01.tar.gz [Request] ** [http://elasticsearch:9200]-[400] [mapper_parsing_exception] failed to parse [version], called from sub Search::Elasticsearch::Role::Client::Direct::__ANON__ at /usr/local/lib/perl5/site_perl/5.28.1/ElasticSearchX/Model/Document/Role.pm line 94. With vars: {'body' => {'status' => 400,'error' => {'root_cause' => [{'type' => 'mapper_parsing_exception','reason' => 'failed to parse [version]'}],'type' => 'mapper_parsing_exception','caused_by' => {'reason' => 'For input string: "0.01"','type' => 'number_format_exception'},'reason' => 'failed to parse [version]'}},'request' => {'serialize' => 'std','path' => '/cpan/release/FKmYJKWUEMj4UpDcy2b__v58iho','ignore' => [],'mime_type' => 'application/json','body' => {'maturity' => 'released','dependency' => [],'resources' => {},'license' => ['unknown'],'stat' => {'mode' => 33188,'size' => 1724,'mtime' => 1037810324},'id' => 'FKmYJKWUEMj4UpDcy2b__v58iho','version_numified' => '0.01','deprecated' => bless( do{\(my $o = 0)},'JSON::PP::Boolean' ),'archive' => 'Acme-Module-Authors-0.01.tar.gz','date' => '2002-11-20T16:38:44','version' => '0.01','author' => 'MIYAGAWA','metadata' => {'abstract' => 'unknown','license' => ['unknown'],'release_status' => 'stable','dynamic_config' => 1,'prereqs' => {},'name' => 'Acme-Module-Authors','meta-spec' => {'version' => 2,'url' => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec'},'generated_by' => 'CPAN::Meta::Converter version 2.150010','author' => ['unknown'],'version' => '0.01','no_index' => {'directory' => ['t','xt','inc','local','perl5','fatlib','example','blib','examples','eg']}},'status' => 'cpan','authorized' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),'name' => 'Acme-Module-Authors-0.01','first' => $VAR1->{'request'}{'body'}{'deprecated'},'distribution' => 'Acme-Module-Authors','provides' => []},'qs' => {'refresh' => 1},'method' => 'POST'},'status_code' => 400}
It happens somewhere in the lib/MetaCPAN/Model/Release.pm code, but I'm unable to pinpoint it.
The command that I execute is:
./bin/metacpan release /CPAN/authors/id/
# and/or
./bin/metacpan release /CPAN/authors/id/W/WA/WATERKIP # Myself
./bin/metacpan release /CPAN/authors/id/M/MS/MSTREEK # just one release, easily testable
Perhaps this is the wrong repository for the bug report, but I read a large disclaimer on the metacpan-api repo for filing issues and my guess is you don't have this issue there otherwise things would be broken on the live platform. So it either has something to do with the docker-compose infra or it is an actual bug.
Metadata
Metadata
Assignees
Labels
No labels