What is Google app script URLFetch service response size limit?

1.8k views Asked by At

I'm writing a Google App Script for a Google spreadsheet and I'm facing a problem with the URLFetch service.

I'm requesting an external service and I sometimes receive an empty response. The external service is pretty stable and must return something, at least an error message if something wrong happens.

But I sometimes receive an empty response, just nothing.

I can only solve this by modifying the request so the expected response should be less in size, and this always fix the issue. Which makes me think its a response size limitation.

I doubt its a random problem because rerunning the script again to issue the same request always fails, unless, as I said, I modify the request to receive a response less in size.

But on Google's quota page, I can't find a clear answer to my question.

At the time of asking this question, I'm facing a problem of reading a response that is supposed to be around 14.1 KB. I knew the size by running the request manually on my browser.

Does anyone know if there is a limitation and what exactly is it ?

2

There are 2 answers

1
Cameron Roberts On BEST ANSWER

In my experience the limit is 10MB. It is definitely larger than 14.1KB, an application I developed (http://www.blinkreports.com) routinely receives responses in excess of 1MB.

0
koma On

Under the assumption that the same limits apply for UrlFetch in Google Apps script as in App Engine.. these limits apply :

  • request size 10 megabytes
  • response size 32 megabytes

see https://cloud.google.com/appengine/docs/java/urlfetch/#Java_Quotas_and_limits