Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error reporting could be improved #12

Open
karenetheridge opened this issue Sep 7, 2024 · 0 comments
Open

error reporting could be improved #12

karenetheridge opened this issue Sep 7, 2024 · 0 comments

Comments

@karenetheridge
Copy link
Contributor

Every so often I encounter an error when submitting a report via App::cpanminus::reporter (presumably something transient on the network?) and it looks like this:

Error while sending this report, continuing with the next one (Test::Reporter: error from 'Test::Reporter::Transport::Metabase:'
fact submission failed: Proxy Error at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/Metabase/Client/Simple.pm line 129.
	Metabase::Client::Simple::submit_fact(Metabase::Client::Simple=HASH(0x1570e1070), CPAN::Testers::Report=HASH(0x156d9f118)) called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/Test/Reporter/Transport/Metabase.pm line 122
	Test::Reporter::Transport::Metabase::send(Test::Reporter::Transport::Metabase=HASH(0x13713a258), Test::Reporter=HASH(0x137816398)) called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/Test/Reporter.pm line 272
	eval {...} called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/Test/Reporter.pm line 272
	Test::Reporter::send(Test::Reporter=HASH(0x137816398)) called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/App/cpanminus/reporter.pm line 548
	App::cpanminus::reporter::try {...} () called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/Try/Tiny.pm line 102
	eval {...} called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/Try/Tiny.pm line 93
	Try::Tiny::try(CODE(0x137128230), Try::Tiny::Catch=REF(0x137131f00), Try::Tiny::Finally=REF(0x13685e538)) called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/App/cpanminus/reporter.pm line 555
	App::cpanminus::reporter::make_report(App::cpanminus::reporter=HASH(0x156822148), "http://www.cpan.org/authors/id/R/RW/RWSTAUNER/Dist-Zilla-Role"..., "Dist-Zilla-Role-PluginBundle-PluginRemover-0.105", "PASS", "Building and testing Dist-Zilla-Role-PluginBundle-PluginRemov"..., "PERL_DL_NONLAZY=1 \"/Volumes/chambord/Users/ether/perl5/perlbr"..., "# \x{a}", "# Versions for all modules listed in MYMETA.json (including o"..., ...) called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/App/cpanminus/reporter.pm line 402
	App::cpanminus::reporter::__ANON__("Dist-Zilla-Role-PluginBundle-PluginRemover-0.105", "http://www.cpan.org/authors/id/R/RW/RWSTAUNER/Dist-Zilla-Role"...) called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/App/cpanminus/reporter.pm line 328
	App::cpanminus::reporter::__ANON__("Dist-Zilla-PluginBundle-Author-ETHER-0.163", "http://www.cpan.org/authors/id/E/ET/ETHER/Dist-Zilla-PluginBu"...) called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/App/cpanminus/reporter.pm line 328
	App::cpanminus::reporter::__ANON__() called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/App/cpanminus/reporter.pm line 410
	App::cpanminus::reporter::process_logfile(App::cpanminus::reporter=HASH(0x156822148), "/Volumes/chambord/Users/ether/.cpanm/build.log") called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/lib/perl5/App/cpanminus/reporter.pm line 273
	App::cpanminus::reporter::run(App::cpanminus::reporter=HASH(0x156822148)) called at /Volumes/chambord/Users/ether/.perlbrew/libs/41.3@std/bin/cpanm-reporter line 29

)...

looking at Metabase/Client/Simple.pm line 129, it would seem that we could improve this diagnostic by printing the actual HTTP response code, and some portion of the message body as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant