You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.