Mael
Mael

Reputation: 427

Google Apps Script UrlFetchApp.fetch() truncating the responseText

When calling UrlFetchApp.fetch() and the response is large (a json containing around 2000 itens with 400 characters each item), the responseText is getting truncated. The length of the response is supposed to be around 800.000 characters, but the size of the response is 588.541 characters (around 500kb). Are there any limits on urlFetch response size?

Thanks

Upvotes: 1

Views: 1580

Answers (1)

Zig Mandel
Zig Mandel

Reputation: 19864

That quota is not published (see https://developers.google.com/apps-script/guides/services/quotas) but you should get paginated data anyways. Apps script wont give you enough ram or time to process that much data. If that url doesnt suport paging you are out of luck.

Upvotes: 2

Related Questions