I've been developing one of my scripts off and on over the last few weeks but when I sat down tonight, I had an error pop up before even making any changes that I can't seem to track down:
"SyntaxError: Unexpected token '.' at eval (<anonymous>) at messageHandler (evalmachine.<anonymous>:713:6) at process.<anonymous> (/home/node/d20-api-server/node_modules/tiny-worker/lib/worker.js:65:55) at process.emit (events.js:310:20) at emit (internal/child_process.js:876:12) at processTicksAndRejections (internal/process/task_queues.js:85:21)"
At first I thought it was something I hadn't noticed from the last time I was messing with things, but even after resorting to commenting out large chunks of code, I just could not get the error to go away. The script I've been working on seems to be functioning (the sandbox doesn't kill it and it responds to commands) so I started disabling it as well as every other script, including those from the menu that might have auto-updated and be the source of it. But still... no luck. While the sandbox needs at least one script to spin up, no matter what that script is (even just one of the benign math libraries that some of the others depend on) the error still appears. Then finally, I checked out some of my other games, including one I haven't launched or modified in months. It's in the console there as well.
At this point, I feel it might be one of two possibilities:
- I did a really big dumb and my API broken something that it shouldn't have been able to break. (Maybe something attached to my account?)
- Something completely unrelated to my janky code broke in an update or something behind the scenes. (Maybe others are having the same issue?)
Either way, I'm weary of continuing to code if my sandbox is unstable for some reason and I'll probably need staff to check it out (I can post the game URL or whatever you need) but I wanted to post it publicly in case someone else has (or had) the same problem and can offer some insight and save them the time/effort.
Thanks for any assistance you can provide and sorry if I'm overlooking something here, I've been beating my head against my desk for the last few hours trying to figure this out.