有关以下错误的问题。我偶尔会收到此消息,但仅在上周才开始。在此之前,在开发和测试过程中已经进行了数百次呼叫
那么...关于如何解决这个问题的任何线索?由于出现此错误,我现在不愿意发布此代码。
编辑:我已经删除了.db文件,重新安装了GoogleAppEngine-1.9.73.msi并重新输入了测试数据-问题仍然存在。
非常感谢-大卫
def readone(self, pprodloyaltybonusid):
q = ndb.gql("SELECT * from dprodloyaltybonus WHERE prodloyaltybonusid = :1",
prodloyaltybonusid)
results = q.get() # this is line 5353 in the error message
if results == None:
results = self.newone()
return results
回溯:
Traceback (most recent call last):
File "C:\_PythonApps\UnitLinked_FID\BusUnitlinked.py", line 5380, in writeone
r = self.readone(pprodloyaltybonus.prodloyaltybonusid)
File "C:\_PythonApps\UnitLinked_FID\BusUnitlinked.py", line 5353, in readone
results = q.get()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\ndb\query.py", line 1253, in get
return self.get_async(**q_options).get_result()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\ndb\tasklets.py", line 383, in get_result
self.check_success()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\ndb\tasklets.py", line 427, in _help_tasklet_along
value = gen.throw(exc.__class__, exc, tb)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\ndb\query.py", line 1266, in _get_async
res = yield self.fetch_async(1, **q_options)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\ndb\tasklets.py", line 427, in _help_tasklet_along
value = gen.throw(exc.__class__, exc, tb)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\ndb\query.py", line 995, in _run_to_list
batch = yield rpc
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\ndb\tasklets.py", line 513, in _on_rpc_completion
result = rpc.get_result()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 613, in get_result
return self.__get_result_hook(self)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\datastore\datastore_query.py", line 2910, in __query_result_hook
self._batch_shared.conn.check_rpc_success(rpc)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\datastore\datastore_rpc.py", line 1377, in check_rpc_success
rpc.check_success()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 579, in check_success
self.__rpc.CheckSuccess()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_rpc.py", line 157, in _WaitImpl
self.request, self.response)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\remote_api\remote_api_stub.py", line 223, in MakeSyncCall
self._MakeRealSyncCall(service, call, request, response)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\remote_api\remote_api_stub.py", line 248, in _MakeRealSyncCall
encoded_response = self._server.Send(self._path, encoded_request)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 394, in Send
response = f.read()
File "C:\Python27\lib\socket.py", line 355, in read
data = self._sock.recv(rbufsize)
File "C:\Python27\lib\httplib.py", line 573, in read
return self._read_chunked(amt)
File "C:\Python27\lib\httplib.py", line 627, in _read_chunked
raise IncompleteRead(''.join(value)) IncompleteRead: IncompleteRead(0 bytes read)
在日志文件中也收到很多警告。一个“集合”是:
WARNING 2018-08-03 21:57:03,381 tasklets.py:468] suspended generator _memcache_set_tasklet(context.py:1136) raised IncompleteRead(IncompleteRead(0 bytes read))
WARNING 2018-08-03 21:57:03,397 tasklets.py:468] suspended generator put(context.py:810) raised IncompleteRead(IncompleteRead(0 bytes read))
WARNING 2018-08-03 21:57:04,539 tasklets.py:468] suspended generator _put_tasklet(context.py:358) raised IncompleteRead(IncompleteRead(0 bytes read))
WARNING 2018-08-03 21:57:04,539 tasklets.py:468] suspended generator put(context.py:824) raised IncompleteRead(IncompleteRead(0 bytes read))
WARNING 2018-08-03 21:57:05,723 tasklets.py:468] suspended generator _run_to_list(query.py:995) raised IncompleteRead(IncompleteRead(0 bytes read))
WARNING 2018-08-03 21:57:05,723 tasklets.py:468] suspended generator _get_async(query.py:1266) raised IncompleteRead(IncompleteRead(0 bytes read))
WARNING 2018-08-03 21:57:14,565 tasklets.py:468] suspended generator _run_to_list(query.py:995) raised IncompleteRead(IncompleteRead(0 bytes read))
WARNING 2018-08-03 21:57:14,565 tasklets.py:468] suspended generator _get_async(query.py:1266) raised IncompleteRead(IncompleteRead(0 bytes read))