-
Notifications
You must be signed in to change notification settings - Fork 6
Unavoidable Crash When Connecting to the Websocket Server #16
Description
Hi all, I've been trying to get up to speed on aria-at overall, and as such was trying to follow the setup instructions for this project in the READme, but kept hitting the following crash on the Node server after my client's websocket connection connected and the server tried to send some output.
node:buffer:328
throw new ERR_INVALID_ARG_TYPE(
^
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object
at new NodeError (node:internal/errors:387:5)
at Function.from (node:buffer:328:9)
at toBuffer (C:\Users\sadik\AppData\Roaming\npm\node_modules\@bocoup\windows-sapi-tts-engine-for-automation\node_modules\ws\lib\buffer-util.js:95:18)
at Sender.send (C:\Users\sadik\AppData\Roaming\npm\node_modules\@bocoup\windows-sapi-tts-engine-for-automation\node_modules\ws\lib\sender.js:315:14)
at WebSocket.send (C:\Users\sadik\AppData\Roaming\npm\node_modules\@bocoup\windows-sapi-tts-engine-for-automation\node_modules\ws\lib\websocket.js:468:18)
at C:\Users\sadik\AppData\Roaming\npm\node_modules\@bocoup\windows-sapi-tts-engine-for-automation\lib\create-command-server.js:9:15
at Set.forEach (<anonymous>)
at broadcast (C:\Users\sadik\AppData\Roaming\npm\node_modules\@bocoup\windows-sapi-tts-engine-for-automation\lib\create-command-server.js:8:18)
at Server.<anonymous> (C:\Users\sadik\AppData\Roaming\npm\node_modules\@bocoup\windows-sapi-tts-engine-for-automation\lib\cli.js:52:19)
at Server.emit (node:events:513:28) {
code: 'ERR_INVALID_ARG_TYPE'
}Oh and I was using wscat to try and connect, as follows
wscat --connect ws://the.vm.hostname.not.actually.this:4382 --subprotocol v1.aria-at.bocoup.comLooking through the current code I was kind of confused as it seems like #10 fixed these sorts of things, until I realized it likely hasn't been published yet per https://www.npmjs.com/package/@bocoup/windows-sapi-tts-engine-for-automation
I'm not sure how publishing a release works for this, but would it be possible to make one so I could try it again? Or if there's another way for me to work around this (maybe pulling from source?) just let me know!