Memcache Errors?!

2 views
Skip to first unread message

Stirman

unread,
Jun 16, 2008, 3:41:44 PM6/16/08
to Google App Engine
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!

Manel

unread,
Jun 16, 2008, 4:49:36 PM6/16/08
to google-a...@googlegroups.com
I've had similar problems trying to cache a key with the same name of a imported module,  i've changed the key for the cached value and seems that all goes fine.

2008/6/16 Stirman <sti...@gmail.com>:



--
manel
http://www.smaider.com

Marzia Niccolai

unread,
Jun 16, 2008, 8:20:36 PM6/16/08
to google-a...@googlegroups.com
Hi,
 This is a known issue with memcache.  It's being tracked at:
http://code.google.com/p/googleappengine/issues/detail?id=417

Thanks,
Marzia

sagasw

unread,
Jun 16, 2008, 8:23:14 PM6/16/08
to google-a...@googlegroups.com
Stirman,

You could use try except to catch the error.
I get the error like yours too, I think it should be in appengine,
anyway, it just alpha.
Thanks,

Well

Mattias Johansson

unread,
Jun 17, 2008, 9:08:23 AM6/17/08
to Google App Engine
Totally unreleated, but Mobaganda rocks!

/Mattias Johansson, http://appengineguy.com

Stirman

unread,
Jun 17, 2008, 6:51:44 PM6/17/08
to Google App Engine
Thanks :)


On Jun 17, 8:08 am, Mattias Johansson <mattias.johans...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages