robinhood-google-sheets icon indicating copy to clipboard operation
robinhood-google-sheets copied to clipboard

Exceeded Maximum Execution Time (line 0)

Open KibsKelble opened this issue 4 years ago • 3 comments

Getting error due to what the title says. Heard maximum execution time on google sheets is 5-6 minutes yet I get this errors almost immediately.

KibsKelble avatar Jun 22 '20 14:06 KibsKelble

Hey folks, first I want to say thank you all for your great work putting this piece of machinery together. This particular execution time issue is trying my patience as well. Google custom functions time out after 30 seconds, but script runtimes are 6 minutes per execution. https://developers.google.com/apps-script/guides/services/quotas

Generally you'll get timed out if, say your orders history is too long (mine is nearing 500 rows). Should be possible to rewrite each of these custom functions to just execute in the apps script, and then populate or overwrite a named sheet. ... I'm very slowly working towards making this happen, as I'm a noob to Javascript/GAS. Any help or thoughts are welcome.

And once again, thanks for making this repo happen, everybody.

waterenergy0 avatar Sep 10 '20 20:09 waterenergy0

having the same problem when pulling options from RH. lemme know if you guys figure anything out. thanks!

samdavidson avatar Nov 24 '20 18:11 samdavidson

I'm not sure if this is a separate issue, but I've been able to get the script to work only some of the time. It seems like certain times of the day make it impossible to populate the data. I honestly have a specific small number of items that I want to populate. I use filters and groupings to remove what I don't want from my view. I'll see if I can't simplify the original code to my own needs and see if that helps. If there is an issue connecting to robinhood rather than just a timeout issue, does anyone know where to look to confirm that?

Philosophist avatar Feb 19 '21 15:02 Philosophist