Hi; Which script captures HTTP 404 errors? I need to play with it. TIA, beno
beno wrote at 2003-1-6 16:30 -0400:
Which script captures HTTP 404 errors? I need to play with it. You can customize "standard_error_message".
It gets called for all exceptions not handled by the application. "404" exceptions cannot be handle by the application because it is not reached. Dieter
At 08:56 PM 1/8/2003 +0100, you wrote:
beno wrote at 2003-1-6 16:30 -0400:
Which script captures HTTP 404 errors? I need to play with it. You can customize "standard_error_message".
It gets called for all exceptions not handled by the application. "404" exceptions cannot be handle by the application because it is not reached.
I'm sorry: I didn't make myself clear. What I meant was the Zope *equivalent* of HTTP 404. For example, when I call a nonexistent page at port 8080 on my server, I get this: """ Site Error An error was encountered while publishing this resource. Debugging NoticeZope has encountered a problem publishing your object. Cannot locate object at: http://webmaster.vi:8080/skel/h Troubleshooting Suggestions ·The URL may be incorrect. ·The parameters passed to this resource may be incorrect. ·A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. (Also, an error occurred while attempting to render the standard error message.) """ So...what script generates this? TIA, beno
you did make yourself clear and you got the correct answer. you need to work with standard_error_message. if you meddle with it and suddenly get an error report that is not what you expect from your changed standard_error_message then the most likely reason is that your standard_error_message itself is buggy. jens On Thursday, Jan 9, 2003, at 00:45 US/Eastern, beno wrote:
At 08:56 PM 1/8/2003 +0100, you wrote:
beno wrote at 2003-1-6 16:30 -0400:
Which script captures HTTP 404 errors? I need to play with it. You can customize "standard_error_message".
It gets called for all exceptions not handled by the application. "404" exceptions cannot be handle by the application because it is not reached.
I'm sorry: I didn't make myself clear. What I meant was the Zope *equivalent* of HTTP 404. For example, when I call a nonexistent page at port 8080 on my server, I get this:
""" Site Error An error was encountered while publishing this resource.
Debugging NoticeZope has encountered a problem publishing your object. Cannot locate object at: http://webmaster.vi:8080/skel/h
Troubleshooting Suggestions ·The URL may be incorrect. ·The parameters passed to this resource may be incorrect. ·A resource that this resource relies on may be encountering an error.
For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. (Also, an error occurred while attempting to render the standard error message.) """
So...what script generates this? TIA, beno
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Jens Vagelpohl schrieb:
you did make yourself clear and you got the correct answer. you need to work with standard_error_message.
if you meddle with it and suddenly get an error report that is not what you expect from your changed standard_error_message then the most likely reason is that your standard_error_message itself is buggy.
jens
On Thursday, Jan 9, 2003, at 00:45 US/Eastern, beno wrote:
At 08:56 PM 1/8/2003 +0100, you wrote:
beno wrote at 2003-1-6 16:30 -0400:
Which script captures HTTP 404 errors? I need to play with it. You can customize "standard_error_message".
It gets called for all exceptions not handled by the application. "404" exceptions cannot be handle by the application because it is not reached.
I'm sorry: I didn't make myself clear. What I meant was the Zope *equivalent* of HTTP 404. For example, when I call a nonexistent page at port 8080 on my server, I get this:
standard_error_message catches them all. See also
http://www.zope.org/Members/JohnC/StandardErrorMessage Martin
At 07:44 AM 1/9/2003 -0500, you wrote:
you did make yourself clear and you got the correct answer. you need to work with standard_error_message.
Actually, in retrospect, I didn't. What I would like to know is what script _throws_ the error that calls standard_error_message.dtml. TIA, beno
there is no single script for that. errors can be thrown anywhere in the code. jens On Saturday, Jan 11, 2003, at 00:29 US/Eastern, beno wrote:
At 07:44 AM 1/9/2003 -0500, you wrote:
you did make yourself clear and you got the correct answer. you need to work with standard_error_message.
Actually, in retrospect, I didn't. What I would like to know is what script _throws_ the error that calls standard_error_message.dtml. TIA, beno
At 10:50 AM 1/11/2003 -0500, you wrote:
there is no single script for that. errors can be thrown anywhere in the code.
Okay...any idea where errors are thrown for pages that aren't found (similar to an HTTP 404 error)? TIA, beno
Hi, a zope 404 response contains the header item Bobo-Exception-File: ...\lib\python\ZPublisher\HTTPResponse.py search in HTTPResponse.py for the code sequence: def notFoundError(self,entry='Unknown'): self.setStatus(404) (...) HTH, Michael beno wrote:
At 10:50 AM 1/11/2003 -0500, you wrote:
there is no single script for that. errors can be thrown anywhere in the code.
Okay...any idea where errors are thrown for pages that aren't found (similar to an HTTP 404 error)? TIA, beno
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- ____________________________________________________________ Dr. Michael Wittmann E-Mail mikew@evolution.org SoftBiz Work 1 +49 (0) 8631 16 31 33 Sepp-Giggenbach-Str. 3 Work 2 +49 (0) 172 832 84 97 D-84453 Muehldorf am Inn Fax +49 (0) 8631 16 31 34 Germany Home +49 (0) 8631 16 31 35 Things generally work fine, except if they don't. ____________________________________________________________
At 05:49 PM 1/11/2003 +0100, you wrote:
Hi,
a zope 404 response contains the header item
Bobo-Exception-File: ...\lib\python\ZPublisher\HTTPResponse.py
search in HTTPResponse.py for the code sequence:
def notFoundError(self,entry='Unknown'): self.setStatus(404) (...)
Thank you! beno
participants (6)
-
beno -
beno -
Dieter Maurer -
Dr. Michael Wittmann -
Jens Vagelpohl -
Martin Gebert