Forgot to CC the list.

On Jul 10, 2006, at 5:59 PM, Michael Peters wrote:



Michael Petnuch wrote:
Hello,

    I just upgraded to the new version of Dispatch.  Everything went
smooth, I didn't have to change anything. However, I have been getting a strange error. I checked out the code and it seems that at the end of
the handler method $r->status is being set (its value is 200).  This
value is associated with everything is Okay. However because the status
is being set it triggers the http_error method (I think)

The status doesn't trigger a call to http_error, an exception in your
application, or in the URL parsing does.

and I see this
appended to the html output:

If it's appended, then it probably means that your application finished it's run mode and postrun. I'd suspect that something is wrong in your teardown.


I tried commenting out all the calls in the teardown sub and it still happens. Besides I wasn't doing anything fancy, this is what I had:

sub teardown {
    my $self = shift;
    $self->param('dbh')->disconnect();
    $self->session->flush;
}



[snip]

Shouldn't Dispatch check to see if the status is 200.

I'm not sure where you're talking about. How can it check if the status is 200 if it's running as the handler? It's the component that sets the status.


Sorry. I probably was not using the right terminology. What I mean was in order to find out more what was going on I edited Dispatch.pm and had it print out whatever $r->status() to a file (this is in the handler sub). When I checked the file it wrote out to is was printing 200.



I suspect something in your teardown phase. Is there anything in your apache error log? Dispatch should be ignoring any errors thrown by your application unless it's the "No such run mode" error, which becomes a NOT_FOUND error.


The Apache error.log file is devoid of any error references. So I really don't know why this is happening. I am going to try again tonight serving just a plant document using Dispatch. Could this be a debian (distro) specific problem?

--
Michael Peters
Developer
Plus Three, LP


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to