RequestPayloadTooLargeException

39 views
Skip to first unread message

Hossein Amerkashi

unread,
Sep 29, 2018, 1:34:56 PM9/29/18
to Google App Engine
Hello,


Does anyone know how to overcome the urlfetch RequestPayloadTooLargeException[1] for handling large files in the request? Have tried[2], but still same issue


[1]
com.google.appengine.api.urlfetch.RequestPayloadTooLargeException: The request to http://xxx.xx.xxx.xx exceeded the 10 MiB limit. at com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationException(URLFetchServiceImpl.java:157) at com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:45) at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.fetchResponse(URLFetchServiceStreamHandler.java:571) at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.getInputStream(URLFetchServiceStreamHandler.java:450) at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.getResponseCode(URLFetchServiceStreamHandler.java:303)



[2]
connection.setChunkedStreamingMode(1024);

George (Cloud Platform Support)

unread,
Sep 30, 2018, 6:08:35 PM9/30/18
to Google App Engine
Hello Hossein, 

The payload maximum size is indeed 10 megabytes, in accordance with the "Quotas and limits for URL Fetch" sub-chapter of the "Outbound Requests" documentation page. You may simply avoid sending files larger than the limit, otherwise, depending on your use-case, you may create signed URLs to upload large files to Cloud Storage. Depending on your app's purpose, this might help under certain circumstances. 

How does you app use the URLFetch Service? What do you try to do? Sample code and general information about your application would be of great help in defining your issue. 
Reply all
Reply to author
Forward
0 new messages