Skip Menu |
 

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

Report information
The Basics
Id: 71427
Status: rejected
Priority: 0/
Queue: HTTP-Message

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

Bug Information
Severity: Important
Broken in: 6.02
Fixed in: (no value)



Subject: Error: Can't locate object method "status" via package "HTTP::Headers"
Download (untitled) / with headers
text/plain 264b
I'm getting this message from time to time: Can't locate object method "status" via package "HTTP::Headers" at /usr/ local/share/perl/5.10.0/HTTP/Message.pm line 644\n HTTP::Message::__ANON__('HTTP::Response=HASH(0xa8a1648)') called at ... Regards, Steven
Download (untitled) / with headers
text/plain 585b
On Mon Oct 03 22:37:49 2011, SHARYANTO wrote: Show quoted text
> I'm getting this message from time to time: > > Can't locate object method "status" via package "HTTP::Headers" at /
usr/ Show quoted text
> local/share/perl/5.10.0/HTTP/Message.pm line 644\n > HTTP::Message::__ANON__('HTTP::Response=HASH(0xa8a1648)') called at
... Show quoted text
> > Regards, > Steven
Btw, I'm currently replacing the offending line in HTTP::Message from this: *$method = sub { shift->headers->$method(@_) }; to this: *$method = sub { eval { shift->headers->$method(@_) } or return }; Seems to remedy the error. Regards, Steven
Download (untitled) / with headers
text/plain 718b
On Thu Oct 20 20:16:46 2011, SHARYANTO wrote: Show quoted text
> On Mon Oct 03 22:37:49 2011, SHARYANTO wrote:
> > I'm getting this message from time to time: > > > > Can't locate object method "status" via package "HTTP::Headers" at /
> usr/
> > local/share/perl/5.10.0/HTTP/Message.pm line 644\n > > HTTP::Message::__ANON__('HTTP::Response=HASH(0xa8a1648)') called at
> ...
> > > > Regards, > > Steven
> > Btw, I'm currently replacing the offending line in HTTP::Message from > this: > > *$method = sub { shift->headers->$method(@_) }; > > to this: > > *$method = sub { eval { shift->headers->$method(@_) } or return }; > > Seems to remedy the error. > > Regards, > Steven
Ignore this post, doesn't work. :(
Download (untitled) / with headers
text/plain 151b
The 'status' method only exists for HTTP::Response objects. The error you see is the expected behavior if you call status on an HTTP::Request object.
Download (untitled) / with headers
text/plain 409b
On Thu Feb 16 16:24:24 2012, GAAS wrote: Show quoted text
> The 'status' method only exists for HTTP::Response objects. The error > you see is the expected > behavior if you call status on an HTTP::Request object.
From the error message it seems like HTTP::Response is involved, not HTTP::Request. I've forgotten which application I got this error message from, next time I'll turn on Carp::Always to see the stack trace.


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.