I'm updating one of my scripts, and have hit a snag that my addled brain cannot figure out. The console sounds like it's telling me I have an infinite loop somewhere, but for the life of me I cannot understand where it could be happening. Here is the full error: RangeError: Maximum call stack size exceeded
at TLSSocket.Socket.write (net.js:667:44)
at IO.ondata (internal/streams/legacy.js:16:26)
at emitOne (events.js:96:13)
at IO.emit (events.js:191:7)
at Client._write (/home/node/d20-api-server/node_modules/websocket-driver/lib/websocket/driver/base.js:158:25)
at Client._sendFrame (/home/node/d20-api-server/node_modules/websocket-driver/lib/websocket/driver/hybi.js:270:10)
at Client.onMessageReady (/home/node/d20-api-server/node_modules/websocket-driver/lib/websocket/driver/hybi.js:225:12)
at Client.<anonymous> (/home/node/d20-api-server/node_modules/websocket-driver/lib/websocket/driver/hybi.js:231:24)
at pipe (/home/node/d20-api-server/node_modules/websocket-extensions/lib/pipeline/index.js:37:40)
at Pipeline._loop (/home/node/d20-api-server/node_modules/websocket-extensions/lib/pipeline/index.js:44:3) The above doesn't say where in my script it is happening, but previous errors have centered around trying to use .split() on a variable I know to be a string. Sending the variable to the console confirms this. However, it will tell me string_variable.split() is not a function... or that I have exceeded the maximum call stack size. Anyone have some insight into this problem? I am more than happy to share snippets or the whole shibang if you think you can figure this out. Thanks in advance!