API调用datastore_v3.Put()的请求太大 [英] The request to API call datastore_v3.Put() was too large

查看:95
本文介绍了API调用datastore_v3.Put()的请求太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我得到 com.google.apphosting.api.ApiProxy $ RequestTooLargeException:请求到API调用datastore_v3.Put()太大。尽管我没有使用Datasotre API。



我认为根据文档< a href =https://developers.google.com/appengine/docs/java/cloud-sql/developers-guide#access_limits> https://developers.google.com/appengine/docs/java/cloud-sql / developers-guide#access_limits 数据大小限制在60秒内提供16MB。



我的数据大小约为1 MB,我的回应是肯定的少于1分钟。如果我尝试使用较小的数据,则一切正常。



那么,为什么会抛出异常?问题是什么 ?
它是谷歌应用程序引擎中的错误吗?还是有一个大小限制,它在哪里记录?或者是什么?

这是因为 GAE sessions ,它们在GAE Datastore中保存会话对象。如果会话中存储了超过1Mb的数据,则会抛出此异常。


I am using google cloud sql with appengine.

I am getting com.google.apphosting.api.ApiProxy$RequestTooLargeException: The request to API call datastore_v3.Put() was too large. despite I am not using the Datasotre API.

I think according to the docs https://developers.google.com/appengine/docs/java/cloud-sql/developers-guide#access_limits that the data-size limit is 16MB served in 60 seconds.

My data size is around 1 MB and my response is definitely less than 1 minute. If I try with smaller data, everything works correctly.

So, why is the exception thrown ? what is the problem ? Is it a bug in google app engine? or is there a size-limitation , where is it documented ? or what ?

解决方案

This happens because of GAE sessions, which under the hood use GAE Datastore to save session objects. This exception is thrown if more than 1Mb data is stored in session.

这篇关于API调用datastore_v3.Put()的请求太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆