[Http-webtest-general] Re: Error messages from StatusTest
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ma...> - 2002-10-02 08:44:31
|
>>>>> On Tue, 1 Oct 2002 21:02:13 -0400, "William McKee" <wi...@kn...> said: WM> Greetings Ilya, Hi William, WM> I received a couple of error messages today from a script which I'm WM> running every minute via a crontab. The errors indicate that WebTest WM> received a 500 - Internal Server Error message. However, I saw no such WM> errors in my server logs. WM> I began to wonder whether WebTest just couldn't connect to the server. So WM> I created a sample script (see below) to try to test this theory. Indeed, WM> it seems that when WebTest cannot access a server (due to an invalid url WM> or a connection timeout), it is returning a 500 error. WM> This response does not seem accurate. I'm not sure where this status code WM> is coming from but was able to track the actual error message to the WM> StatusTest.pm module. Could you test and verify my results? Do you use the WM> LWP to make the actual connections? Is this error message generated from WM> those libraries? Yes, I'm using LWP for networking operations. Yes, LWP generates such error messages itself. When it encounters an error it just generates HTTP::Response object with status code 500. Frankly I don't know if it is possible at all to distinguish errors received from a server from LWP generated errors (other than using regexps on error messages what is very error prone). -- Ilya Martynov (http://martynov.org/) |