News for hackers. Stuff that matters.
Re:My Weekend Project: Not A New Yorker (Feedback Requested) by HNer on Sunday October 17, 2010 @12:57PM (#1800778)
Traceback (most recent call last): File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 513, in __call__ handler.post(*groups) File "/base/data/home/apps/newyorkerwhen/1.345563940169596428/main.py", line 88, in post test = Quote.all().filter('quote =', message ).get() File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1797, in get results = self.fetch(1, rpc=rpc) File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1848, in fetch raw_query = self._get_query() File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 2110, in _get_query namespace=self._namespace) File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 950, in __init__ self.update(filters) File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1367, in update self.__setitem__(filter, value) File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1309, in __setitem__ datastore_types.ValidateProperty(' ', value, read_only=True) File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore_types.py", line 1324, in ValidateProperty prop_validator(name, v) File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore_types.py", line 1215, 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 1205, in ValidateStringLength (name, len(value), max_len)) BadValueError: Property is 867 bytes long; it must be 500 or less. Consider Text instead, which can store strings of any length.
Re:My Weekend Project: Not A New Yorker (Feedback Requested) by symkat on Sunday October 17, 2010 @01:12PM (#1800811)

  $ curl --data "message=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" www.notanewyorker.com/post
  Thanks for playing the manual POST game.
Fixed. =) Thank you for testing it!