Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Sudden API error after no problems for over a year?

Hi all, I've been running a game for over a year plus with basically the same setup of API scripts but apparently since last we played 2 weeks ago the API scripts connected to that campaign won't load. I just get an error message every time I try to restart even though I've not made any changes in forever to what scripts are there. I don't know if a specific script updated and is breaking or what and I'm not sure how sort that out or track down a solution.  Can anyone help? Here's the error I'm getting: TypeError: Cannot set property 'Sheet' of undefined TypeError: Cannot set property 'Sheet' of undefined     at apiscript.js:13103:26     at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:65:16)     at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:70:8)     at checkForReady (/home/node/d20-api-server/api.js:1438:12)     at /home/node/d20-api-server/api.js:1518:9     at c (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:14:64)     at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560     at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)     at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)     at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489)     at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425)     at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:400
1565929622
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
What scripts are you running? If recommend turning them off one by one till you no longer get the error to find what's causing the issue
1565961514
The Aaron
Roll20 Production Team
API Scripter
Also, what character sheet are you using?  Sheet workers get loaded into the API and errors in them can creat the sandbox. Since this is looking for "Sheet", it makes me suspicious of a sheet worker. 
Scott C. said: What scripts are you running? If recommend turning them off one by one till you no longer get the error to find what's causing the issue The Aaron said: Also, what character sheet are you using?  Sheet workers get loaded into the API and errors in them can creat the sandbox. Since this is looking for "Sheet", it makes me suspicious of a sheet worker.  The "D&D 5e by Roll20" one.
1565968924
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
The Aaron said: Also, what character sheet are you using?  Sheet workers get loaded into the API and errors in them can creat the sandbox. Since this is looking for "Sheet", it makes me suspicious of a sheet worker.  Since the error references an API line number, I think it's going to be an API script.
It is cash master i have the same issue
Go back to 9.1 in the repository and you will be fine
1565973791

Edited 1565975163
I think I may have gotten it sorted before seeing that Anthony. I disabled all the scripts. That didn't work. I made a backup copy of the game and tried just reinstalling the scripts. Didn't work. I finally settled for just rolling the game back a week and for some reason that fixed the issue. I've got cash master disabled but I'll go remove it since I've not used it in forever anyway.
Thanks for the help everyone. Made for a really frustrating session last night but at least it's hopefully fixed before our next game in two weeks.