I've seen this stack trace pop up sporadically when making an inbound call. It seems that in some cases the sync stream is not being created. Haven't yet determined the cause.
Line throwing the error: https://github.com/Kunalmighty/SKO24Flex/blob/main/apps/transcriptionEngine/src/index.js#L70
Error writing to Sync stream TypeError: Cannot read properties of null (reading 'publishMessage')
at /Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/src/index.js:70:28
at speechRecognizer.recognizing (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/src/recogniser/microsoft.js:33:7)
at SpeechServiceRecognizer. (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js:90:59)
at step (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js:48:23)
at Object.next (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js:29:53)
at /Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js:23:71
at new Promise ()
at __awaiter (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js:19:12)
at SpeechServiceRecognizer.processTypeSpecificMessages (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js:66:16)
at SpeechServiceRecognizer. (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceRecognizerBase.js:646:56)
I've seen this stack trace pop up sporadically when making an inbound call. It seems that in some cases the sync stream is not being created. Haven't yet determined the cause.
Line throwing the error: https://github.com/Kunalmighty/SKO24Flex/blob/main/apps/transcriptionEngine/src/index.js#L70
Error writing to Sync stream TypeError: Cannot read properties of null (reading 'publishMessage')
at /Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/src/index.js:70:28
at speechRecognizer.recognizing (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/src/recogniser/microsoft.js:33:7)
at SpeechServiceRecognizer. (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js:90:59)
at step (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js:48:23)
at Object.next (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js:29:53)
at /Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js:23:71
at new Promise ()
at __awaiter (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js:19:12)
at SpeechServiceRecognizer.processTypeSpecificMessages (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js:66:16)
at SpeechServiceRecognizer. (/Users/cweems/workspace/SKO24Flex/apps/transcriptionEngine/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceRecognizerBase.js:646:56)