google-app-engine


DeadlineExceededError in self.response.write


I'm facing a random DeadlineExceededError exception when writing to the response.
Here is my handler:
class MyHandler(webapp2.RequestHandler):
def get(self):
result = [{'id':1},{'id':2}]
json_result = json.encode(result)
self.response.write(json_result)
The log says:
Traceback (most recent call last):
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 266, in Handle
result = handler(dict(self._environ), self._StartResponse)
File "/base/data/home/apps/s~ynhac-net/1.370047219851726476/engineauth/middleware.py", line 154, in __call__
resp = req.get_response(self.app)
File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webob-1.1.1/webob/request.py", line 1086, in get_response
application, catch_exc_info=False)
File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webob-1.1.1/webob/request.py", line 1058, in call_application
output.extend(app_iter)
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/appstats/recording.py", line 1286, in appstats_wsgi_wrapper
end_recording(status)
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/appstats/recording.py", line 1410, in end_recording
rec.save()
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/appstats/recording.py", line 654, in save
key, len_part, len_full = self._save()
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/appstats/recording.py", line 678, in _save
namespace=config.KEY_NAMESPACE)
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/memcache/__init__.py", line 1008, in set_multi
namespace=namespace)
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/memcache/__init__.py", line 907, in _set_multi_with_policy
status_dict = rpc.get_result()
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 612, in get_result
return self.__get_result_hook(self)
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/memcache/__init__.py", line 974, in __set_with_policy_hook
rpc.check_success()
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 583, in check_success
self.__stubmap.GetPostCallHooks().Call(self.__service, self.__method,
DeadlineExceededError
I have no clue where to look into since it is a random issue.
Please help :)

Related Links

How to tell whether it is a “development server”?
Why I got over quota error ? google app engine
If I use ObjectifyFilter I get error
Is there an API for creating google cloud platform credentials?
How to make programmatic access to an appengine application that is secure and authenticated
What App Engine datastore caching strategy will give complete cache consistency?
Google App Engine : High CPU Utilization
appengine cloud storage compile error in demo project
Issue with using the Google Datastore query console
How can I run `gcloud preview app setup-managed-vms` without this error?
Appengine unit test fail with Objectify - No Class registered
What is the name of the database or table?
Google Apps Domain Authentication with Google App Engine - Too many redirects
can I combine NDB and mysqldb in one app on google cloud platform
Logging in a Google Cloud Endpoint
Appengine Maven Plugin - Endpoints Goal - Enable filtering on .discovery files

Categories

HOME
asp.net-web-api
checkstyle
c++11
time-complexity
merge
github-for-windows
grafana
static-site
rom
cakephp-3.4
android-json
missing-data
mvc5
nstableheaderview
flume
pattern-matching
text-mining
emoji
comsol
zerobrane
keytool
forgot-password
google-content-api
digital-signature
connector
apache2.4
google-maps-autocomplete
data.stackexchange.com
syntax-highlighting
angularjs-components
browser-sync
google-earth
constexpr
scrollview
turfjs
latitude-longitude
demo
postgresql-8.4
plr
knime
drupal-theming
clang++
flask-restful
x-ray
singleinstance
spring-data-couchbase
shinobi
javafx-css
pure-css
meteor-packages
grails-plugin
ziparchive
webjars
mongodb-php
cortex-m
contentcontrol
inf
state-restoration
oracle-spatial
forwarding
xvim
toolkit
dulwich
botan
snoop
angular-gettext
malformedurlexception
vbe
c++builder-xe5
pylucene
tmx
globals
ajax-polling
zen
burndowncharts
lalr
ifilter

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile