NodeRed Crashing after update


Ive noticed since NodeRed was updated, a very simple automation that has been working for years is now crashing NodeRed, at least i think thats whats crashing it.

When the door sensor is opened, it plays a sound on Google devices. Like i said, its been working for the longest time, but now when it triggers, NodeRed shuts down and i see this in the logs. Any ideas?

[15:05:24] INFO: Starting Node-RED...
> start
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
5 Aug 15:05:25 - [info] 
Welcome to Node-RED
5 Aug 15:05:25 - [info] Node-RED version: v3.0.2
5 Aug 15:05:25 - [info] Node.js  version: v16.16.0
5 Aug 15:05:25 - [info] Linux 5.15.55 x64 LE
5 Aug 15:05:26 - [info] Loading palette nodes
5 Aug 15:05:29 - [info] Dashboard version 3.1.7 started at /endpoint/ui
5 Aug 15:05:29 - [info] Settings file  : /etc/node-red/config.js
5 Aug 15:05:29 - [info] Context store  : 'default' [module=memory]
5 Aug 15:05:29 - [info] User directory : /config/node-red/
5 Aug 15:05:29 - [warn] Projects disabled : editorTheme.projects.enabled=false
5 Aug 15:05:29 - [info] Flows file     : /config/node-red/flows.json
5 Aug 15:05:29 - [info] Server now running at
5 Aug 15:05:29 - [info] Starting flows
5 Aug 15:05:29 - [info] Started flows
[15:05:29] INFO: Starting NGinx...
5 Aug 15:05:34 - [info] [server:Home Assistant] Connecting to http://supervisor/core
5 Aug 15:05:34 - [info] [server:Home Assistant] Connected to http://supervisor/core
5 Aug 15:05:48 - [red] Uncaught Exception:
5 Aug 15:05:48 - [error] TypeError: node.error is not a function
    at errorHandler (/opt/node_modules/node-red-contrib-cast/cast-to-client.js:52:10)
    at getSpeechUrl (/opt/node_modules/node-red-contrib-cast/cast-to-client.js:192:9)
    at Timeout._onTimeout (/opt/node_modules/node-red-contrib-cast/cast-to-client.js:836:33)
    at listOnTimeout (node:internal/timers:561:11)
    at processTimers (node:internal/timers:502:7)
[15:05:48] WARNING: Node-RED crashed, halting add-on
[15:05:48] INFO: Node-RED stoped, restarting...
s6-rc: info: service legacy-services: stopping
[15:05:48] INFO: Node-RED stoped, restarting...
s6-svwait: fatal: supervisor died
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
[15:05:48] INFO: nginx stoped, restarting...
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

There appears to be a fix at

Oh, i think im starting to remember everything now, i havent had to touch any of this in so long, i forgot how to do anything. Thanks for the info.

Well i cant figure out how to use CastV2… im not sure how to set it up and the instructions arent clean how it functions with other nodes. If anyone is familiar with Cast V2, please help.