I’m trying to save data from the Facebook API in Google Sheets, but when I insert the data into the spreadsheet, the insertion is extremely slow, and the ETIMEDOUT error appears.
From looking at your screenshot it seems you’re calling the Google Sheets node (and thus the respective API) 72 times in total. Are you doing so in quick succession? If so, some throttling logic on Google’s end might have kicked in here.
So in a first step, I’d try adding a short Wait between each of the requests and also configure the Google Sheets node to retry a request if it his an error. This can be done like so:
I think the position of the Wait node is fine (it shouldn’t really matter whether you wait before the first request or not, seeing the problems occurs towards the end of the loop).
Does the input data sent to your Google Sheets node perhaps change in any significant way on the failing loop run compared to previous successful loop executions? Perhaps because you use expressions in your credentials or something?
And does the behaviour change if you increase the Wait time?
In some moments the flow works normally, but in others it hangs a lot in the Google Sheets node.
I’ve tried increasing the wait time and that didn’t work either. At some point it ends up crashing everything.
I did some tests with other apps like Airtable and they worked fine, but I would really like to resolve the Google Sheets issue due to using Datastudio.