android - The string property has a value that is too long. It cannot exceed 500 characters -
i tried send long string param endpoint method. 1 of params list<string>
, contains large number of values, this:
105969550886996847196,109334384788152421649,109172191656045871108,... , more
the method simple:
@apimethod(name = "getfullobjects") public myobject getfullobjects(list<string> ids) { //body not relevant }
it throws this:
error code: 400 reason: badrequest message: java.lang.illegalargumentexception: string property ids has value long. cannot exceed 500 characters.
do can't pass more 500 characters in 1 param? awful... :/
is there way exceed limit or pass data other way?
note:
this endpoint method colaborates android app!
note 2:
if there realy, limitation of 500 characters endpoint param, wchich can't find in documentation gae, wondering how there list of entities passable... of them sure take more 500 chars after serialization string.
@xylian, bypass limitation can either break string multiple parameters or play @apitransformer bypass limitation.
other options have:
limit number of characters sending in each 1 of string. instead of sending strings 21 characters-long, can send numbers (1, 2, 10...) represent these ids (or whatever are), have mapping table on server "convert" these short ids long id.
batch several calls api avoid running on quota in 1 call.
Comments
Post a Comment