Lacking any indication of the problem except the error you pasted, I looked at the PoCo::Client::HTTP source on CPAN. Near line 1165, this is what I found (trimmed a bit for pasting):

sub _respond { my($heap, $request_id, $request) = @_; my $response = $request->[REQ_RESPONSE]; if ($heap->{frmax}) { if ($heap->{redir}->{$request_id}->{followed}) { # ... } else { my $tmpresponse = $response; while (defined ...) { my $prev = $heap->{redir}->{$request_id}->{from}; $tmpresponse->previous(...); $tmpresponse = $tmpresponse->previous(); $request_id = $prev; } } } $request->[REQ_POSTBACK]->($response); }

Assuming this is the same version you're using, or the line numbers are close enough that this is the code in question, it looks like previous is being called several times on $tmpresponse. This is a copy of $response, which in turn is a copy of $request->[REQ_RESPONSE].

Just guessing from that code, and the error you pasted, it looks like the response is undefined. The code should probably check for that possibility, but it doesn't appear to. Perhaps this is a bug that should be reported, but I'm just doing guesswork based on the scant evidence presented. :-)


In reply to Re: POE Client HTTP error by revdiablo
in thread POE Client HTTP error by water

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.