t-saideep/link-board — Issue #20: change the comments field to text
Author: siddharth-joshi
Created: 2011-12-22 07:41:43+00:00
State: open

I submitted a really long comment and got this error, we might want to change the comments section to a "Text" field instead.

Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 703, in __call__
handler.post(*groups)
File "/base/data/home/apps/s~link-board/2.355542878347069513/main.py", line 71, in post
c.put()
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1051, in put
self._populate_internal_entity()
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1020, in _populate_internal_entity
self._entity = self._populate_entity(_entity_class=_entity_class)
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1091, in _populate_entity
self._to_entity(entity)
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1005, in _to_entity
self.__set_property(entity, prop.name, prop.get_value_for_datastore(self))
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 995, in __set_property
entity[name] = datastore_value
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 854, in __setitem__
datastore_types.ValidateProperty(name, value)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore_types.py", line 1481, in ValidateProperty
prop_validator(name, v)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore_types.py", line 1360, in ValidatePropertyString
ValidateStringLength(name, value, max_len=_MAX_STRING_LENGTH)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore_types.py", line 1350, in ValidateStringLength
(name, len(value), max_len))
BadValueError: Property text is 1315 bytes long; it must be 500 or less. Consider Text instead, which can store strings of any length.