Skip Menu |
 

This queue is for tickets about the HTTP-Proxy CPAN distribution.

Report information
The Basics
Id: 123067
Status: open
Priority: 0/
Queue: HTTP-Proxy

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.304
Fixed in: (no value)



Subject: t/90httpstatus.t started to fail
Download (untitled) / with headers
text/plain 3.9k
A new failure on my smoker systems: ... # Failed test '302 => 302 Server closed connection without sending any data back' # at t/90httpstatus.t line 48. # got: '500' # expected: '302' # Failed test '303 => 303 read timeout' # at t/90httpstatus.t line 48. # got: '500' # expected: '303' # Failed test '305 => 305 read timeout' # at t/90httpstatus.t line 48. # got: '500' # expected: '305' # Failed test '307 => 307 read timeout' # at t/90httpstatus.t line 48. # got: '500' # expected: '307' # Failed test '400 => 400 read timeout' # at t/90httpstatus.t line 48. # got: '500' # expected: '400' # Failed test '401 => 401 read timeout' # at t/90httpstatus.t line 48. # got: '500' # expected: '401' # Failed test '402 => 402 read timeout' # at t/90httpstatus.t line 48. # got: '500' # expected: '402' # Failed test '403 => 403 read timeout' # at t/90httpstatus.t line 48. # got: '500' # expected: '403' # Failed test '404 => 404 read timeout' # at t/90httpstatus.t line 48. # got: '500' # expected: '404' # Failed test '405 => 405 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '405' # Failed test '406 => 406 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '406' # Failed test '407 => 407 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '407' # Failed test '408 => 408 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '408' # Failed test '409 => 409 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '409' # Failed test '410 => 410 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '410' # Failed test '411 => 411 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '411' # Failed test '412 => 412 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '412' # Failed test '413 => 413 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '413' # Failed test '414 => 414 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '414' # Failed test '415 => 415 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '415' # Failed test '416 => 416 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '416' # Failed test '417 => 417 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '417' # Failed test '418 => 418 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '418' # Failed test '501 => 501 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '501' # Failed test '502 => 502 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '502' # Failed test '503 => 503 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '503' # Failed test '504 => 504 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '504' # Failed test '505 => 505 Can't connect to 127.0.0.1:35522' # at t/90httpstatus.t line 48. # got: '500' # expected: '505' # Looks like you planned 45 tests but ran 41. # Looks like you failed 28 tests of 41 run. t/90httpstatus.t .......... Dubious, test returned 28 (wstat 7168, 0x1c00) Failed 32/45 subtests ...
Download (untitled) / with headers
text/plain 4.4k
On 2017-09-18 01:11:21, SREZIC wrote: Show quoted text
> A new failure on my smoker systems: > > ... > # Failed test '302 => 302 Server closed connection without sending > any data back' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '302' > > # Failed test '303 => 303 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '303' > > # Failed test '305 => 305 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '305' > > # Failed test '307 => 307 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '307' > > # Failed test '400 => 400 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '400' > > # Failed test '401 => 401 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '401' > > # Failed test '402 => 402 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '402' > > # Failed test '403 => 403 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '403' > > # Failed test '404 => 404 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '404' > > # Failed test '405 => 405 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '405' > > # Failed test '406 => 406 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '406' > > # Failed test '407 => 407 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '407' > > # Failed test '408 => 408 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '408' > > # Failed test '409 => 409 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '409' > > # Failed test '410 => 410 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '410' > > # Failed test '411 => 411 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '411' > > # Failed test '412 => 412 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '412' > > # Failed test '413 => 413 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '413' > > # Failed test '414 => 414 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '414' > > # Failed test '415 => 415 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '415' > > # Failed test '416 => 416 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '416' > > # Failed test '417 => 417 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '417' > > # Failed test '418 => 418 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '418' > > # Failed test '501 => 501 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '501' > > # Failed test '502 => 502 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '502' > > # Failed test '503 => 503 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '503' > > # Failed test '504 => 504 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '504' > > # Failed test '505 => 505 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '505' > # Looks like you planned 45 tests but ran 41. > # Looks like you failed 28 tests of 41 run. > t/90httpstatus.t .......... > Dubious, test returned 28 (wstat 7168, 0x1c00) > Failed 32/45 subtests > ...
A guess: redirects on httpstat.us go to https://httpstat.us. Probably this was formerly not the case. But I fail to understand why https is now causing a problem.
Your guess, that they changed to https, gets confirmation from https://github.com/Readify/httpstatus/commit/fbb02c8aba4f6fe53fc07995473afe8dc742ef61 On the day of that commit I submitted my first FAIL report: http://www.cpantesters.org/cpan/report/11cbcd94-9187-11e7-9257-4443f1062601 Here is a trivial fix with a tiny defect: --- t/90httpstatus.t~ 2015-06-16 00:47:39.000000000 +0000 +++ t/90httpstatus.t 2018-05-12 04:36:26.681033369 +0000 @@ -19,7 +19,7 @@ use HTTP::Request::Common; use t::Utils; -my $base = 'http://httpstat.us'; +my $base = 'https://httpstat.us'; plan tests => $tests; @@ -36,7 +36,7 @@ $proxy->init; my $ua = LWP::UserAgent->new( keep_alive => 1 ); - $ua->proxy( http => $proxy->url ); + $ua->proxy( https => $proxy->url ); # fork the proxy my $pid = fork_proxy($proxy); All tests pass again now. The defect is that the test hangs for circa 123 seconds. Given that in the last 8 months it was always hanging for an hour, this is quite an improvement, but still not perfect.
Download (untitled) / with headers
text/plain 4.8k
On Mon Sep 18 01:11:21 2017, SREZIC wrote: Show quoted text
> A new failure on my smoker systems: > > ... > # Failed test '302 => 302 Server closed connection without sending > any data back' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '302' > > # Failed test '303 => 303 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '303' > > # Failed test '305 => 305 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '305' > > # Failed test '307 => 307 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '307' > > # Failed test '400 => 400 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '400' > > # Failed test '401 => 401 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '401' > > # Failed test '402 => 402 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '402' > > # Failed test '403 => 403 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '403' > > # Failed test '404 => 404 read timeout' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '404' > > # Failed test '405 => 405 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '405' > > # Failed test '406 => 406 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '406' > > # Failed test '407 => 407 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '407' > > # Failed test '408 => 408 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '408' > > # Failed test '409 => 409 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '409' > > # Failed test '410 => 410 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '410' > > # Failed test '411 => 411 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '411' > > # Failed test '412 => 412 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '412' > > # Failed test '413 => 413 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '413' > > # Failed test '414 => 414 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '414' > > # Failed test '415 => 415 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '415' > > # Failed test '416 => 416 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '416' > > # Failed test '417 => 417 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '417' > > # Failed test '418 => 418 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '418' > > # Failed test '501 => 501 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '501' > > # Failed test '502 => 502 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '502' > > # Failed test '503 => 503 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '503' > > # Failed test '504 => 504 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '504' > > # Failed test '505 => 505 Can't connect to 127.0.0.1:35522' > # at t/90httpstatus.t line 48. > # got: '500' > # expected: '505' > # Looks like you planned 45 tests but ran 41. > # Looks like you failed 28 tests of 41 run. > t/90httpstatus.t .......... > Dubious, test returned 28 (wstat 7168, 0x1c00) > Failed 32/45 subtests > ...
The hangups persist for t/90httpstatus.t. Today I attempted to install it against perl-5.27.11 on FreeBSD-11.1 using 'cpanm' as the installer. I had to kill the test suite after nearly 5 minutes. The build.log showed that all tests up through t/71rot13.t completed successfully, but for 90 I got this: ##### Failed test '302 => 302 Server closed connection without sending any data back' # at t/90httpstatus.t line 48. # got: '500' # expected: '302' # Failed test '303 => 303 read timeout' # at t/90httpstatus.t line 48. # got: '500' # expected: '303' ##### Thank you very much. Jim Keenan
Download (untitled) / with headers
text/plain 126b
I am experiencing the same with perl-5.28.1 on Linux (3.10.0-957.5.1.el7.x86_64). The workaround is to install with no tests.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.