【发布时间】:2014-05-29 20:29:10
【问题描述】:
我只是尝试向端点方法发送一个长字符串参数。其中一个参数是List<String>,其中包含大量值,如下所示:
105969550886996847196,109334384788152421649,109172191656045871108,... and more
方法本身很简单:
@ApiMethod(name = "getFullObjects")
public MyObject getFullObjects(List<String> ids) {
//body not relevant
}
它抛出这个:
Error Code: 400
Reason: badRequest
Message: java.lang.IllegalArgumentException: The string property ids has a value that is too long. It cannot exceed 500 characters.
我真的不能在一个参数中传递超过 500 个字符吗?那会很糟糕...:/
有没有办法超过这个限制或以其他方式传递这些数据?
注意:
此端点方法与 Android 应用程序协作!
注意 2:
如果真的有,端点参数的限制是 500 个字符,我在 GAE 的任何文档中都找不到,只是想知道如何有可以通过的实体列表......其中一些肯定需要超过序列化为字符串后的 500 个字符。
【问题讨论】:
标签: android google-app-engine google-cloud-endpoints