Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird Issue Maybe 2019 Problem? #10

Open
MCMan6482 opened this issue Mar 5, 2019 · 1 comment
Open

Weird Issue Maybe 2019 Problem? #10

MCMan6482 opened this issue Mar 5, 2019 · 1 comment

Comments

@MCMan6482
Copy link

Heyo, I'm from team 2551 and was loving using this app,
However as our scouting sheet has expanded there's been an issue we can't seem to rectify on our end. Over time random cells with data are replaced with #ERROR and when hovered over says "Service invoked too many times in a short time: exec qps. Try Utilities.sleep(1000) between calls. (line 0)."

If you'd be able to pop in and see whats up it'd be a HUGE help. Feel free to contact me with any questions [email protected]

Thanks!

@Eiim
Copy link
Owner

Eiim commented Mar 6, 2019

It's not a 2019 problem, it just wasn't designed for scouting sheets that epic! :P

It seem like you're calling the TBA API too many times at once. The short-term solution would be to put in half the calls at one point, wait for them to load, and then add the other half. If you have lots up updating cells, you might be able to stagger them by only updating the second half once all of the first half has been updated. I'm not sure exactly what this looks like, but it seems potentially doable, maybe with some kind of control cell which changes once the first half has finished.

The long-term solution is to refactor significant sections of the code so that it handles caching better, which would solve some other issues as well. However, I'm not well versed in Google Sheet's caching mechanisms and I'm a bit busy preparing (surprise surprise!) scouting right now, so that's unlikely to happen before the end of 2019 unless someone more knowledgeable in Google Sheets function caching than I gets involved.

If you still are having issues, feel free to send me the sheet and I can have a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants