logo

Send Email When Errors Happen

Something I've been planning on doing for a while now is to email myself everytime this site's $$ReturnGeneralError form is triggered. As much out of curiosity as for anything else. Doing it is pretty easy. Just have a Computed For Display field with a formula like:

summary:="Request: http://" +server_name + Path_Info +@NewLine+
"Browser: "+HTTP_User_Agent+@NewLine+
"Query_String: "+Query_String_Decoded+@NewLine+
"IP: "+Remote_Addr+@NewLine+
"Error: " + MessageString;
@MailSend("[Notes Address]"; ""; ""; "ERROR: " + MessageString; Summary)

Well I did it a few hours ago and the inbox is suffering already. Who's to blame? Not me, obviously my code is faultless ;o) It's the Robots. IBM's Crawler trying to access things like /A55692/store.nsf/%5c. Gigabot trying to access URLs with two view names in it etc, etc. Then there are the strange ones like "?Cache" requests from browsers with names like DA 5.0. It's a strange old world (wide web).

If this is what happens on a Sunday then me thinks me is going to have to remove this feature in a day or so. In the mean time I have added a Robots file.

Just realised it's five years to the day since I graduated (7-7-97, all the sevens). How time flies. This bloke was my what-do-you-call-it for a year. Forgot how much he looked like Captain Kirk. Five years on and the degree that I thought would be the grounding for my future career is now in the "Other Achievements" section at the very bottom of my resumé.

About This Page

Written by Jake Howlett on Sun 7 Jul 2002

Share This Page

# ( ) '

Comments

Commenting is disabled on this entry.

Let's Get Social


About This Website

CodeStore is all about web development. Concentrating on Lotus Domino, ASP.NET, Flex, SharePoint and all things internet.

Your host is Jake Howlett who runs his own web development company called Rockall Design and is always on the lookout for new and interesting work to do.

You can find me on Twitter and on Linked In.

Read more about this site »

More Content