October 13th, 2004, 02:31 PM
'python exception' error message in ICAP...
Hello to all,
I am trying to implement a RESPMOD in ICAP, where a proxylet simply inserts an image into the HTML code of the HTTP response (similar to the proxylet 'bannerPl.py').
For some reason, the RESPMOD process is giving me the following error:
error: uncaptured python exception, closing channel <icap_channel connected 127.0.0.1:36249 at f6cdaacc channel#: 230 requests:> (exceptions.AttributeError:'str' object has no attribute 'group' [/root/icap_server/medusa-20010416/asyncore.py|poll|97] [/root/icap_server/medusa-20010416/asyncore.py|handle_read_event|385] [/root/icap_server/medusa-20010416/asynchat.py|handle_read|131] [/root/icap_server/icap_server.py|found_terminator|336] [/root/icap_server/icap_handler.py|handle_request|143])
When I kill the ICAP server, I get the following traceback lines:
Traceback (most recent call last):
File "./start_icap.py", line 33, in ?
File "./start_icap.py", line 29, in __init__
asyncore.loop(use_poll = 0)
File "/root/icap_server/medusa-20010416/asyncore.py", line 196, in loop
poll_fun (timeout, map)
File "/root/icap_server/medusa-20010416/asyncore.py", line 87, in poll
r,w,e = select.select (r,w,e, timeout)
I can't figure out what is going wrong. I'm not sure if this is a common problem, or if this is specific to my implementation. Any feedback would be greatly appreciated!