Advertisement Create a free account

!Publicsheet api crash

1585187342
I am using the 5e ogl sheet and when I hit the button to force sync on !publicsheet it cause the api to crash.  It says it detects a possible infinite loop and shuts down.  Any idea why that might be?  I have never used this script before and I like how it makes a sheet everyone can see.  I'd love to keep using it but would need it to update correctly.
1585195145
The Aaron
Forum Champion
API Scripter
The problem is likely that there are a very large number of attributes to sync. I rewrote the syncing logic, give this version a try, if it works, I'll push it up the the official repo as a bug fix: <a href="https://gist.github.com/shdwjk/fcbfee01d9e2f43f1e63de6d79cafec6" rel="nofollow">https://gist.github.com/shdwjk/fcbfee01d9e2f43f1e63de6d79cafec6</a>
1585261016
That seemed to work.&nbsp; It still does not give any indication that it is doing anything when you click the buttons but the public sheets did update after all.&nbsp; So I just uninstalled the 1 click and am using your direct feed.
1585261679
The Aaron
Forum Champion
API Scripter
It's not my script, so I hesitate to update it too much.&nbsp; However, I did add a couple of output messages when it begins syncing and when it finishes.&nbsp; Gist above updated.
1585262337

Edited 1585262534
You mean you just added them right now??&nbsp; Like in the last 20 minutes since I posted this????&nbsp; Does no one have to work anymore??&nbsp; I can't keep up.&nbsp; You're waaaaay too fast.&nbsp; That's amazing :-) **EDIT**&nbsp; That was perfect.&nbsp; I LOVE feedback from my api.&nbsp; Helps me know it's working.
1585282060
The Aaron
Forum Champion
API Scripter
Hahahahah, I do still have to work, but that was after 6:00pm, so no biggy. =D