Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
71427
Status:
rejected
Priority:
Low/Low
Queue:

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

BugTracker
Severity:
Important
Broken in:
6.02
Fixed in:
(no value)



Subject: Error: Can't locate object method "status" via package "HTTP::Headers"
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
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
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. :(
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.
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 runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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