It looks like you might be trying to store more than 500 bytes into a
StringProperty. If you don't need that property indexed, you can change it
to a TextProperty instead.

It should be safe to do, according to this thread:
http://groups.google.com/group/google-appengine/browse_thread/thread/282dc825f9c46684

See the difference between StringProperty and TextProperty here:
http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#StringProperty

Nick


On 17 August 2010 10:37, Coding Social <[email protected]> wrote:

> suddenly getting loads of these errors.  my app takes a url and
> unwinds it but seems to have issues with these long ones...
>
> 190.206.24.222 - - [16/Aug/2010:17:31:42 -0700] "GET /
> map.powertwitter/?
> action=parseLink&version=1.38&format=json&linkNumber=189&url=http%3A//
> tr.oneriotads.com/EJHnoM2dnojTxygevjqUhMUIbJdZD-
> kRERvtxziYRu7bNvSpeuc3tIHhKcFcBjxBVxi3mxxb8uc-
> YHHAqO6xO54kb5bQWFgRNiW3infATshVJi09MDSZi7wbdReFf8WKMRI-
> HrRfZcaNPjxDi5_WJnuGxzJ1mpyu2-w-
> bJEFcbNQGtSxXrdfg5Qj9CQH2lx8UH4ww0Y_gR2a4QHRRBbIA6cJo4DOqxD2SQkskUOpZiy-
> hUIqGAJ5dRKG6DQCFq5Tz2I2h9mVqL3-
> mfNct0LcXofJ5FxPdTGroOSgMfQz4b79DWsVmW3UtKmamiFQOvo-
> dq6qxFvXlWYQwZY2pIT3WNueh61Z09p-
>
> NDQxtdySKA_54S-5c5BoUwo4iVj6BvOlSiQFkbFUVb7WDA4PvpIUNy7_1E1hQOZhJDJ48weKejYpv7XZvyHtFtqocVzL-
> W8oDMlVmKvHdhh-uzw0SXRbHD2W0wuLXNB3hc-
> MBQITdlDQJNo3n6HcbBsmXpA4zdhK7BVFpd0J3GybC_eSJFWcL-
>
> HBCpwj1f2Vn6izPFeAVHylrYqa2eE7GK6MM4hw6WAhsze8BqZXY2EqIxMKd5SmXW79Q9xNjqpAVznjy9l_OR4Ir9q_nL-
> qu9qVjNCOLtlHL07G7jPPO3alTw2JA HTTP/1.1" 500 799 "http://twitter.com/";
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.2.8) Gecko/
> 20100722 Firefox/3.6.8 FBSMTWB,gzip(gfe),gzip(gfe)"
> "linkmapper.codingsocial.com" ms=34 cpu_ms=19 api_cpu_ms=0
> cpm_usd=0.000740
>
> #
> E 08-16 05:31PM 42.351
>
> Property   is 682 bytes long; it must be 500 or less. Consider Text
> instead, which can store strings of any length.
> Traceback (most recent call last):
>  File "/base/python_runtime/python_lib/versions/1/google/appengine/
> ext/webapp/__init__.py", line 511, in __call__
>    handler.get(*groups)
>  File "/base/data/home/apps/mapthislink/1.341324888206633050/
> linkmapper.py", line 816, in get
>    cache.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 2378, in _get_query
>    self._cursor, self._end_cursor)
>  File "/base/python_runtime/python_lib/versions/1/google/appengine/
> ext/gql/__init__.py", line 249, in Bind
>    self.__AddFilterToQuery(identifier, condition, value, query)
>  File "/base/python_runtime/python_lib/versions/1/google/appengine/
> ext/gql/__init__.py", line 636, in __AddFilterToQuery
>    datastore._AddOrAppend(query, filter_condition, value)
>  File "/base/python_runtime/python_lib/versions/1/google/appengine/
> api/datastore.py", line 2533, in _AddOrAppend
>    dictionary[key] = value
>  File "/base/python_runtime/python_lib/versions/1/google/appengine/
> api/datastore.py", line 1293, in __setitem__
>    datastore_types.ValidateProperty(' ', value, read_only=True)
>  File "/base/python_runtime/python_lib/versions/1/google/appengine/
> api/datastore_types.py", line 1295, in ValidateProperty
>    prop_validator(name, v)
>  File "/base/python_runtime/python_lib/versions/1/google/appengine/
> api/datastore_types.py", line 1186, 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 1176, in ValidateStringLength
>    (name, len(value), max_len))
> BadValueError: Property   is 682 bytes long; it must be 500 or less.
> Consider Text instead, which can store strings of any length.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to