perl6-lwp-simple icon indicating copy to clipboard operation
perl6-lwp-simple copied to clipboard

Could not parse chunk header

Open szabgab opened this issue 9 years ago • 5 comments

This command: perl6 -MLWP::Simple -e 'say LWP::Simple.get("https://github.com/cosimo/perl6-lwp-simple/")'

generates this error:

  in method parse_chunks at /Users/gabor/rakudo-star-2015.09/install/share/perl6/lib/LWP/Simple.pm:193
  in method make_request at /Users/gabor/rakudo-star-2015.09/install/share/perl6/lib/LWP/Simple.pm:222
  in method request_shell at /Users/gabor/rakudo-star-2015.09/install/share/perl6/lib/LWP/Simple.pm:70
  in method get at /Users/gabor/rakudo-star-2015.09/install/share/perl6/lib/LWP/Simple.pm:29
  in block <unit> at check_travis.pl:20

These work fine:

perl6 -MLWP::Simple -e 'say LWP::Simple.get("https://github.com/cosimo/")'

perl6 -MLWP::Simple -e 'say LWP::Simple.get("https://github.com/")'

szabgab avatar Oct 10 '15 06:10 szabgab

Seems to work for me with current master and perl6 2015.09-433-g26617f9. @szabgab, can you confirm?

cosimo avatar Oct 22 '15 07:10 cosimo

It worked though I got an apparently unrelated error. (and it is an older version of Rakudo. Maybe 2 weeks old.) Could you enable this repository on https://travis-ci.org/ , please?

===(      19;22  0/?  0/?  0/?  1/3 )===================================Failed to connect: host is unreachable
  in block <unit> at t/socket-sanity.t:15

# Looks like you planned 3 tests, but ran 2
t/socket-sanity.t ............... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/3 subtests 

szabgab avatar Oct 22 '15 19:10 szabgab

Done now.

cosimo avatar Oct 22 '15 19:10 cosimo

Travis runs stumble on the same error. Apparently that works fine for me. It's the IPv6 address resolution that seems to fail.

cosimo avatar Oct 22 '15 20:10 cosimo

It would seem that if there is v6 available it will use this first and fail if it can't connect see https://rt.perl.org/Ticket/Display.html?id=126401

jonathanstowe avatar Nov 05 '15 00:11 jonathanstowe