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é.