Hi, Sorry, did not read the exception message closely enough: "'datetime.timedelta' object is not callable".
Do you use datetime.timedelta in your code? Perhaps datetime.timedelta is getting overwritten by a timedelta object. Robert On Sun, Feb 20, 2011 at 02:00, burg <[email protected]> wrote: > Hi Robert, > Thanks for the reply! > The problem with this error is that it is inconsistent. Some requests > return this error and some don't. There are no caches which might be > hiding this. > Also this error is not apparent in the dev server. > > On Feb 14, 8:03 pm, Robert Kluin <[email protected]> wrote: >> Hi Alon, >> Looks like you might be giving a bad value to a datetime property. >> >> Robert >> >> >> >> >> >> >> >> On Mon, Feb 14, 2011 at 06:29, burg <[email protected]> wrote: >> > now I'm also getting this sporadically from the admin console: >> > 2011-02-14 02:02:44.815 /admin_console/datastore?kind=Entity 500 79ms >> > 116cpu_ms 116api_cpu_ms 0kb Mozilla/5.0 (Macintosh; U; Intel Mac OS X >> > 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/ >> > 9.0.597.102 Safari/534.13,gzip(gfe) >> > 62.219.126.27 - alon [14/Feb/2011:02:02:44 -0800] "GET /admin_console/ >> > datastore?kind=Entity HTTP/1.1" 500 768 "http://3.company- >> > proxy.appspot.com/admin_console/datastore" "Mozilla/5.0 (Macintosh; U; >> > Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) >> > Chrome/9.0.597.102 Safari/534.13,gzip(gfe)" "3.company- >> > proxy.appspot.com" ms=79 cpu_ms=117 api_cpu_ms=117 cpm_usd=0.003427 >> > E 2011-02-14 02:02:44.802 >> > Error converting pb: meaning: 7 >> > name: "expires" >> > value < >> > int64Value: 0x4b21500a798d6 >> >> > multiple: false >> >> > Exception was: 'datetime.timedelta' object is not callable >> > Traceback (most recent call last): >> > File "/base/python_runtime/python_lib/versions/1/google/appengine/ >> > ext/webapp/__init__.py", line 515, in __call__ >> > handler.get(*groups) >> > File "/base/python_runtime/python_lib/versions/1/google/appengine/ >> > ext/admin/__init__.py", line 671, in get >> > result_set, total = self.execute_query() >> > File "/base/python_runtime/python_lib/versions/1/google/appengine/ >> > ext/admin/__init__.py", line 616, in execute_query >> > entities = query.Get(start + num)[start:] >> > File "/base/python_runtime/python_lib/versions/1/google/appengine/ >> > api/datastore.py", line 1352, in Get >> > batch = batcher.next_batch(limit) >> > File "/base/python_runtime/python_lib/versions/1/google/appengine/ >> > datastore/datastore_query.py", line 1105, in next_batch >> > batch = self.__next_batch.get_result() >> > File "/base/python_runtime/python_lib/versions/1/google/appengine/ >> > api/apiproxy_stub_map.py", line 534, in get_result >> > return self.__get_result_hook(self) >> > File "/base/python_runtime/python_lib/versions/1/google/appengine/ >> > datastore/datastore_query.py", line 1028, in __query_result_hook >> > for result in query_result.result_list()] >> > File "/base/python_runtime/python_lib/versions/1/google/appengine/ >> > datastore/datastore_rpc.py", line 110, in pb_to_query_result >> > return self.pb_to_entity(pb) >> > File "/base/python_runtime/python_lib/versions/1/google/appengine/ >> > api/datastore.py", line 205, in pb_to_entity >> > return Entity._FromPb(pb) >> > File "/base/python_runtime/python_lib/versions/1/google/appengine/ >> > api/datastore.py", line 844, in _FromPb >> > value = datastore_types.FromPropertyPb(prop) >> > File "/base/python_runtime/python_lib/versions/1/google/appengine/ >> > api/datastore_types.py", line 1638, in FromPropertyPb >> > 'Error converting pb: %s\nException was: %s' % (pb, msg)) >> > BadValueError: Error converting pb: meaning: 7 >> > name: "expires" >> > value < >> > int64Value: 0x4b21500a798d6 >> >> > multiple: false >> >> > Exception was: 'datetime.timedelta' object is not callable >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "Google App Engine" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group >> > athttp://groups.google.com/group/google-appengine?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
