Corion / HTTP-Request-Diff

HTTP::Request::Diff - diff two HTTP requests
Artistic License 2.0
0 stars 0 forks source link

Can't locate object method "query_param" #1

Open eserte opened 4 months ago

eserte commented 4 months ago

On some systems the test suite fails with the following errors:

Can't locate object method "query_param" via package "URI::https" at /home/cpansand/.cpan/build/2024032508/HTTP-Request-Diff-0.03-BzH77w/blib/lib/HTTP/Request/Diff.pm line 333.
t/01-simple.t ... 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 
Can't locate object method "query_param" via package "URI::_generic" at /home/cpansand/.cpan/build/2024032508/HTTP-Request-Diff-0.03-BzH77w/blib/lib/HTTP/Request/Diff.pm line 333, <DATA> line 1.
# No tests run!
# Looks like your test exited with 255 after test #0.
# Did not follow plan: expected 9, ran 0.
# Seeded srand with seed '20240325' from local date.
t/02-headers.t .. 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 9/9 subtests 
YAML Error: Invalid element in map
   Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT
   Line: 4
   Document: 1
 at /usr/perl5.24.2p/lib/site_perl/5.24.2/YAML/Loader.pm line 350.
# No tests run!
# Looks like your test exited with 255 after test #0.
# Did not follow plan: expected 4, ran 0.
# Seeded srand with seed '20240325' from local date.
t/03-params.t ... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 4/4 subtests 
Can't locate object method "query_param" via package "URI::_generic" at /home/cpansand/.cpan/build/2024032508/HTTP-Request-Diff-0.03-BzH77w/blib/lib/HTTP/Request/Diff.pm line 333, <DATA> line 1.
# No tests run!
# Looks like your test exited with 255 after test #0.
# Did not follow plan: expected 3, ran 0.
# Seeded srand with seed '20240325' from local date.
t/03-table.t .... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/3 subtests 

Maybe a use URI::QueryParam is required somewhere?

Corion commented 4 months ago

Yeah - old(er) versions of URI don't load that functionality automatically. This will be in 0.05, thanks for reporting this!