Something in this script is crashing
-
I have the script and SOMETHING in the for loop is crashing, I tested wtih just dragging out the for loop and it doesnt crash, the error it logs is
scratch-gui.4249d868093d19d7e7b7.js:1750 Uncaught TypeError: o.toLowerCase is not a function at Scratch3OperatorsBlocks.value (scratch-gui.4249d868093d19d7e7b7.js:1750:2355893) at scratch-gui.4249d868093d19d7e7b7.js:1728:78991 at e.value (scratch-gui.4249d868093d19d7e7b7.js:1750:673208) at e.value (scratch-gui.4249d868093d19d7e7b7.js:1750:668735) at m.value (scratch-gui.4249d868093d19d7e7b7.js:1430:182027) at scratch-gui.4249d868093d19d7e7b7.js:1430:191377 at o (scratch-gui.4249d868093d19d7e7b7.js:1430:190732)
Edit: I realized I did have lowercase blocks in there, which I have removed and it did work (still dont know hwo they caused it, I removed htem becuase I realized I was broadcsating the world name which when I set the world name the first time I have it lowercased) but now the isuse is it seems to just not fetch from the sheets doc? error is now
scratch-playground.050a4bba48f4da8d0101.js:55 GET https://web-agw.creaticode.com/api/block/v1/speech/google/sheet?spreadsheetId=1nzHTgYnCk9AkKvOJFAnnWzQgcFl2-zg4aMq2G6cdIk0&sheet=Messages&range=A1:Z100 500 (Internal Server Error)
|Edit 2: Okay I have acutally checked the list and that error seems not to mean anything, but I have now found it fills in blank columns and rows, so I can’t just be lazy and say from column A to Z and down a bunch of rows (instead I gotta do column A to whatever and a bunch of rows, it used to just limit filling the table to wherevever there was data and not fill past that I’m pretty sure)
-
Can you please share the project link?
-
@info-creaticode I seem to have fixed the issue with some adjustments but not the log, I can set the project to shared tmrw when I have some time since its my chatrooms project and I need to adjust it so all sheet blocks reference one variable for the sheet (that way I don’t have random people accessing the sheet)
-
If you are not ready to publish the project, you can also email the URL to info@creaticode.com. Our admin account can open private projects as well.