2 ms·
Your app mentioned in the blog post is throwing me an error. Traceback (most recent call last): File "/base/python_runtime/python_lib/versions/1/google/appen
by irahul 15y ago
Your app mentioned in the blog post is throwing me an error.
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 700, in __call__
handler.get(*groups)
File "/base/data/home/apps/twordsie/1.347280040146141318/main.py", line 55, in get
'rows': [{'c': [{'v': tweet["text"]}]} for tweet in tweets]}
TypeError: string indices must be integers
You should install error handlers for server error(500), page not found(404), forbidden(403), and any others relevant for your app.
Regardless, 500 is the one you should generally install a handler for. It exposes details and flaws in your application which can be used in attacks.
Here is how you do that in django:
https://docs.djangoproject.com/en/dev/topics/http/views/#the-500-server-error-view https://docs.djangoproject.com/en/dev/topics/http/views/#the...