The request to API call datastore_v3.Put() was too large

岁酱吖の 提交于 2019-12-04 11:05:45

问题


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 ?


回答1:


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.



来源:https://stackoverflow.com/questions/15338092/the-request-to-api-call-datastore-v3-put-was-too-large

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!