[Help] My script makes a character's sheet un-openable

1515794906
Will
Pro
Hi! New, strange problem here.  I have a script that populates some char-sheet text boxes with values from an array.  When I only loop the first level of this array, everything is fine.  When I try to expand into the next levels, something weird happens that makes the character not open (that is to say, I click on the character and the sheet does not open at all).  I get no errors in my API  when this happens.  It seems like I'm crashing the character sheet in some way that is separate from the game itself? Also, if I open the character's sheet ahead of time then run the script, none of the fields populate as usual.  Not just the fields related to this particular script, but none whatsoever.  The scripts is running through multiple loops within loops with like 5 times 3 times 1 (15) objects, creating attributes that appear on the char sheet.   How could I  be crashing the char sheet to the point that it won't even open for this character while no error is registered by the API?  Thanks
1515800511
The Aaron
Pro
API Scripter
The Character Sheet runs in the Browser, so if it has any errors, they will show up in the Javascript Console (usually accessible in something like View->Developer->Console Log).  I'd load that up and see what it says.  Additionally, if you want to post your script, we can look at it and see if anything jumps out.
1515855054
Will
Pro
Very cool.  Ya, the browser console is chock-a-block full of errors when I run this script. This error gets thrown about 12 times. FIREBASE WARNING: Exception was thrown by user callback. TypeError: t.toLowerCase is not a function     at T.s.updateSheetValues (https://app.roll20.net/assets/app.js?1515604619:91:29018)     at T.s.<anonymous> (https://app.roll20.net/assets/app.js?1515604619:91:29463)     at T.s.trigger (https://app.roll20.net/assets/base.js?1515518527:1:15755)     at T.s._onModelEvent (https://app.roll20.net/assets/base.js?1515518527:1:23841)     at T.s.trigger (https://app.roll20.net/assets/base.js?1515518527:1:15843)     at T.s.add (https://app.roll20.net/assets/base.js?1515518527:1:21195)     at i._add (https://app.roll20.net/assets/app.js?1515604619:3:51)     at i.child_added (https://app.roll20.net/assets/app.js?1515604619:3:196)     at https://app.roll20.net/assets/firebase.2.4.0.js:2...     at gc (https://app.roll20.net/assets/firebase.2.4.0.js:52:165)  S @ firebase.2.4.0.js:45 (anonymous) @ firebase.2.4.0.js:52 setTimeout (async) gc @ firebase.2.4.0.js:52 cc @ firebase.2.4.0.js:30 dc @ firebase.2.4.0.js:29 h.Kb @ firebase.2.4.0.js:220 h.Ld @ firebase.2.4.0.js:188 Eh.Ld @ firebase.2.4.0.js:178 (anonymous) @ firebase.2.4.0.js:176 yh @ firebase.2.4.0.js:170 La.onmessage @ firebase.2.4.0.js:169 firebase.2.4.0.js:52 Uncaught TypeError: t.toLowerCase is not a function     at T.s.updateSheetValues (app.js?1515604619:91)     at T.s.<anonymous> (app.js?1515604619:91)     at T.s.trigger (base.js?1515518527:1)     at T.s._onModelEvent (base.js?1515518527:1)     at T.s.trigger (base.js?1515518527:1)     at T.s.add (base.js?1515518527:1)     at i._add (app.js?1515604619:3)     at i.child_added (app.js?1515604619:3)     at firebase.2.4.0.js:203     at gc (firebase.2.4.0.js:52)
1515855351
G G
Pro
Sheet Author
As Aaron says, it's a good idea to post your code. We can't easily tell what might be going on without it.
1515855903
Will
Pro
Welp, found my problem already.  Something stupid, as usual.  The attributes I was creating all had a 0 where I meant to put their names cause I was lazy while initially formatting my JSON stuff.   Anyway, I always learn something new when I stump myself with a silly mistake.  Thank you Aaron. -Will
1515856065
Will
Pro
Ya, my code's just really messy and embarrassing and 9 times out of 10 the problem is something silly like this.  Luckily, his advice to look at the browser log was all I needed to notice my mistake and avoid exposing my amateurish code.
1515859535
The Aaron
Pro
API Scripter
No worries, happens to all of us!  I’ve written some pretty horrendous stuff (don’t look and my Mystara calendar code!!).