CherryPy traceback on startup

2 views
Skip to first unread message

Graham Ashton

unread,
Dec 12, 2005, 1:22:13 PM12/12/05
to cherrypy-users
Hi. I've just installed the latest version of TurboGears and get a
traceback every time I try to start the server.

I started a thread on the TurboGears list and Sylvain Hellegouarch
helped me debug the initial problems (tracebacks in sessionfilter.py),
but now I'm having problems loading cookies. He asked me to post here.

The original thread is here:

http://groups.google.com/group/turbogears/browse_thread/thread/7edd9e2c89c98d80/54f1f19d54b04549?

I'm currently getting this traceback when I try and load any page:

2005/12/12 12:46:27 INFO Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
line 263, in run
self.processRequestHeaders()
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
line 340, in processRequestHeaders
request.simpleCookie.load(value)
File "/usr/lib/python2.4/Cookie.py", line 621, in load
self.__ParseString(rawdata)
File "/usr/lib/python2.4/Cookie.py", line 652, in __ParseString
self.__set(K, rval, cval)
File "/usr/lib/python2.4/Cookie.py", line 574, in __set
M.set(key, real_value, coded_value)
File "/usr/lib/python2.4/Cookie.py", line 453, in set
raise CookieError("Illegal key value: %s" % key)
CookieError: Illegal key value: hide:inst2

Any suggestions? Anything I can do to help?

Thanks,

Graham

midtoad

unread,
Dec 12, 2005, 9:59:57 PM12/12/05
to cherrypy-users
well, if you look in cookie.py, you'll see that you can't have a :
symbol in a cookie. Probably that wasn't intended; the value was
probably supposed to be inst2. Instead, it looks as though an
dictionary element 'hide':'inst2' was passed as a single string, rather
than just the value.

How that happened, though, I don't know. Hope Remi does!

Graham Ashton

unread,
Dec 14, 2005, 4:17:11 PM12/14/05
to cherrypy-users
I deleted the cookie from within my browser, and now I've got the TG
page loaded without any problems.

Cheers,

Graham

Reply all
Reply to author
Forward
0 new messages