I implemented memcache to cache event objects for my app:
mobaganda.com
Everything seemed to work when I tested, however, out in productions,
I keep seeing these random 500 errors. When I try to duplicate, it's
totally random...
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 499, in __call__
handler.get(*groups)
File "/base/data/home/apps/mobaganda/1.68/mobaganda.py", line 149,
in get
event = self.get_event(eventName)
File "/base/data/home/apps/mobaganda/1.68/mobaganda.py", line 174,
in get_event
event = memcache.get(url)
File "/base/python_lib/versions/1/google/appengine/api/memcache/
__init__.py", line 370, in get
self._do_unpickle)
File "/base/python_lib/versions/1/google/appengine/api/memcache/
__init__.py", line 188, in _decode_value
value = do_unpickle(stored_value)
File "/base/python_lib/versions/1/google/appengine/api/memcache/
__init__.py", line 251, in DoUnpickle
return self._unpickler_instance.load()
File "/base/python_dist/lib/python2.5/pickle.py", line 852, in load
dispatch[key](self)
File "/base/python_dist/lib/python2.5/pickle.py", line 1149, in
load_binget
self.append(self.memo[repr(i)])
KeyError: '0'
My logic is very simple, see if the event is cached, if so, get it..
if not, query for it.
Anyone able to extract anything meaningful from that error log?
Thanks!