Closed eserte closed 5 years ago
Thanks for the report.
The URL is generated by Test::HTTP::LocalServer and the error massage is thrown by Furl. I will check how to fix this.
as a temporary fix 0.426 works around this by only using the port returned by Test::HTTP::LocalServer.
It's a bug in Furl, @Corion submitted an PR https://github.com/tokuhirom/Furl/pull/119
temporary fix fails on bsd: http://www.cpantesters.org/cpan/report/941bbfba-dfa1-11e9-9066-e374b0ba08e8
switch to HTTP::Tiny? It supports IPv6 and is already used in some Catmandu modules.
The failling machine is likely a dual-interface machine that can run both IPv4 and IPv6, but localhost
resolves only on IPv4 but the test uses IPv6 (or vice versa). This is the reason why Test::HTTP::LocalServer uses 127.0.0.1 or ::1 instead of localhost
. My suggestion is to either fix Furl or switch away from it. A fix is in tokuhirom/Furl#119 I think.
replaced Furl with HTTP:Tiny in 0.427
On my smoker systems:
This seems to fail with the latest Test::HTTP::LocalServer. Statistical analysis: