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

API Error

1541270407

Edited 1541270710
Hey guys, I'm running into the following API error: Error: Firebase.update failed: First argument contains undefined in property 'name' Error: Firebase.update failed: First argument contains undefined in property 'name' at Ba (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:9:49) at Ba (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:10:207) at Aa (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:8:462) at Ea (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:10:403) at J.update (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:146:318) at TrackedObj._doSave (/home/node/d20-api-server/api.js:850:27) at later (/home/node/d20-api-server/node_modules/underscore/underscore.js:892:31) at Timeout._onTimeout (/home/node/d20-api-server/node_modules/underscore/underscore.js:829:19) at ontimeout (timers.js:386:14) at tryOnTimeout (timers.js:250:5) Which does freeze my API until I restart it. It's sufficiently common for me to ask if anyone knows what's up? I run the following API's: Combat Tracker Pathfinder Companion Script Statusinfo.JS Tokenmod And this is my sandbox log: Spinning up new sandbox... "Starting webworker script..." "Loading 2095 translation strings to worker..." "%c•.¸¸.•*´¨`*•.¸¸.•*´¨`*•.¸  The Aaron Sheet  v0.2.5  ¸.•*´¨`*•.¸¸.•*´¨`*•.¸¸.•" "%c•.¸¸.•*´¨`*•.¸¸.•*´¨`*•.¸  Last update: Wed Sep 06 2017 15:09:02 GMT+0000 (UTC)  ¸.•*´¨`*•.¸¸.•*´¨`*•.¸¸.•" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>       HLImport module loaded             <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>           ,## /##                        <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>          /#/ /  ##                       <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>         / / /    ##                      <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>          | ##___#/                       <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>          | ##       athfinder            <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>       #  | ##    sheet version           <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>        ### /           01.73             <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>                                          <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "CombatTracker Ready! Command: !ct" "StatusInfo Ready! Command: !condition" "-=> TokenMod v0.8.41 <=-  [Wed Sep 26 2018 00:30:10 GMT+0000 (UTC)]" "%c Notice: %c Attributes at version: 0 " "Sheet Worker ERROR: Unable to find valid character with ID -LQPX5ZaQ8cGiu6ciOtf" "Sheet Worker ERROR: Unable to find valid character with ID -LQPX5ZaQ8cGiu6ciOtf" Possible infinite loop detected, shutting down. Restarting sandbox due to script changes... Previous shutdown complete, starting up... Spinning up new sandbox... "Starting webworker script..." "Loading 2095 translation strings to worker..." "%c•.¸¸.•*´¨`*•.¸¸.•*´¨`*•.¸  The Aaron Sheet  v0.2.5  ¸.•*´¨`*•.¸¸.•*´¨`*•.¸¸.•" "%c•.¸¸.•*´¨`*•.¸¸.•*´¨`*•.¸  Last update: Wed Sep 06 2017 15:09:02 GMT+0000 (UTC)  ¸.•*´¨`*•.¸¸.•*´¨`*•.¸¸.•" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>       HLImport module loaded             <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>           ,## /##                        <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>          /#/ /  ##                       <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>         / / /    ##                      <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>          | ##___#/                       <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>          | ##       athfinder            <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>       #  | ##    sheet version           <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>        ### /           01.73             <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "%cס§₪₪₪₪§|(Ξ≥≤≥≤≥≤ΞΞΞΞΞΞΞΞΞΞ>                                          <ΞΞΞΞΞΞΞΞΞΞ≥≤≥≤≥≤Ξ)|§₪₪₪₪§ס" "CombatTracker Ready! Command: !ct" "StatusInfo Ready! Command: !condition" "-=> TokenMod v0.8.41 <=-  [Wed Sep 26 2018 00:30:10 GMT+0000 (UTC)]" "%c Notice: %c Attributes at version: 0 " "Sheet Worker ERROR: Unable to find valid character with ID -LQPomAo91w_iVeudLX0" "Sheet Worker ERROR: Unable to find valid character with ID -LQPomAo91w_iVeudLX0" "%c Notice: %c Attributes at version: 0 " "-=> Pathfinder Companion v1.01518021707 || Compatible with Sheet Version 1.6,1.7x <=-  [Wed Feb 07 2018 16:41:47 GMT+0000 (UTC)]" "Sheet Worker ERROR: Unable to find valid character with ID -LQPopXxox6aatz3yfJD" "Sheet Worker ERROR: Unable to find valid character with ID -LQPopXxox6aatz3yfJD" Error: Firebase.update failed: First argument contains undefined in property 'name' Error: Firebase.update failed: First argument contains undefined in property 'name'     at Ba (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:9:49)     at Ba (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:10:207)     at Aa (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:8:462)     at Ea (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:10:403)     at J.update (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:146:318)     at TrackedObj._doSave (/home/node/d20-api-server/api.js:850:27)     at later (/home/node/d20-api-server/node_modules/underscore/underscore.js:892:31)     at Timeout._onTimeout (/home/node/d20-api-server/node_modules/underscore/underscore.js:829:19)     at ontimeout (timers.js:386:14)     at tryOnTimeout (timers.js:250:5)
It also occasionally warns me of an infinite loop! :3
1541275674

Edited 1541275713
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi TheJokerPlays, After a brief consultation behind the scenes, I'm going to move this into Bug Reports. I'll go ahead and see if I can re-create this with a similar set-up. Which Pathfinder sheet are you running? I'm not familiar enough with them to ensure I get the right sheet/script combo the first time. In the meantime, some questions: 1. You say "it's common enough". I take this to mean that it happens often, but not consistently? 2. Are you using the one click install of the companion script and the drop down selection of the sheet, or are you manually installing either of them? 3. Does the error occur if you load this combo into a fresh game, or if you temporarily disable some of the scripts? 4. If "Statusinfo.JS" is manually loaded (as I am assuming from the name), make sure you copied from the RAW source, to ensure you did not get any extraneous characters. The script should end with a semicolon. If manually installed, please provide link for your source, so I can run a valid test.
1541276808
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hi Jokerplays, Sorry for the inconvenience, can you disable the Pathfinder Companion Script and see if the error occurs? I think I'm going to have to dig deep into PFC at some point in the near future and see where I made a mistake.
keithcurtis said: Scott C. said: Hey Keith & Scott, I appreciate the move and quick assistance. Sheet:  I'm running the Neceros Pathfinder Community sheet (latest version) 1. Correct, it happens 2-3 times when I run my game-instance. Usually near the first startup, and then later down the line once or twice, usually after the second or third restart it runs fine for a few hours before without seemingly any warning or consistent action shutting back down, or not... It seems very inconsistent. The error occurs even when I take no action  on the VTT. 2. I'm using the one-click install for everything but statusinfo which hasn't been updated yet for the one-click.  3. I'd have to test this around, unfortunately I don't have the time right now but I'll look into that ASAP. 4. Correct, Statusinfo is manually loaded (the one-click isn't updated yet.) But I trippel checked and it's installed properly. I suspect it's indeed the Pathfinder Companion Script (which currently I'm using to track ammo. A nice feature by the way @scott C.) But I'm not experienced enough to make a sure call on that. The infinite loop however might be tokentool? Again, I'm not nearly experienced enough (or seem to have the debugging info I need to read it out) to make a call on that, that's just what I with my very limited understanding suspect.