[Catalyst] unicode warnings (+ errors C::P::UploadProgress)

Brad Bowman list at bereft.net
Fri Jun 14 05:18:38 GMT 2013


On 14/06/13 14:39, Alan Humphrey wrote:
> I just upgraded to the latest Catalyst (5.90040). I’m now seeing this warning
> on all pages:
>
> [2013/06/13 09:50:53] [catalyst] [WARN] Can't call method "decode" on an
> undefined value at
> /home/alanh/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Catalyst/Plugin/Unicode/Encoding.pm
> line 160, <DATA> line 1003.
[..]

I'm also getting these warnings with a fresh install of
Catalyst::Plugin::UploadProgress, and also some errors which
look related.  Highlights below.

Catalyst-Plugin-UploadProgress-0.06
$ pmvers Catalyst
5.90040
Perl 5.16.3


t/01use.t ............. ok
[warn] Can't call method "decode" on an undefined value at 
/usr/local/strategic/perl/lib/site_perl/5.16.3/Catalyst/Plugin/Unicode/Encoding.pm 
line 160.
...
[error] Caught exception in engine "Can't use string ("Can't call method 
"decode" on an"...) as a HASH ref while "strict refs" in use at 
/usr/local/strategic/perl/lib/site_perl/5.16.3/Catalyst/Plugin/Unicode/Encoding.pm 
line 101."

#   Failed test 'Upload ok'
#   at t/04uploadprogress.t line 48.
#          got: 'Bad Request'
#     expected: 'ok'

[error] Caught exception in engine "Can't use string ("Can't call method 
"decode" on an"...) as a HASH ref while "strict refs" in use at 
/usr/local/strategic/perl/lib/site_perl/5.16.3/Catalyst/Plugin/Unicode/Encoding.pm 
line 101."

#   Failed test 'Multi-file upload OK'
#   at t/04uploadprogress.t line 84.
#          got: 'Bad Request'
#     expected: 'ok'

# Looks like you failed 2 tests of 12.
t/04uploadprogress.t ..
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/12 subtests

Test Summary Report
-------------------
t/04uploadprogress.t (Wstat: 512 Tests: 12 Failed: 2)
   Failed tests:  2, 8
   Non-zero exit status: 2
Files=2, Tests=13,  1 wallclock secs ( 0.02 usr  0.00 sys +  1.06 cusr  0.04 
csys =  1.12 CPU)
Result: FAIL
Failed 1/2 test programs. 2/13 subtests failed.




More information about the Catalyst mailing list