Error “Cannot read property '0' of undefined” when parsing output from Transcribe #4615
Replies: 4 comments 1 reply
-
Hi @michaelcafiero02, could you please provide a sample code that we can use to reproduce this issue and understand your implementation. Thanks! |
Beta Was this translation helpful? Give feedback.
-
i am facing the same issue ................\node_modules@aws-sdk\eventstream-handler-node\dist-cjs\EventStreamPayloadHandler.js:39 TypeError: Cannot read properties of undefined (reading '0') here is my code :
please provide a proper code if it is working for you , btw the pcm audio data here i am taking from a file ./100_1.en.pcm |
Beta Was this translation helpful? Give feedback.
-
Has anyone been able to solve it? |
Beta Was this translation helpful? Give feedback.
-
Experiencing same issue here. |
Beta Was this translation helpful? Give feedback.
-
Hello! I am using AWS SDK v3 to integrate a Node.js application with AWS Transcribe. I create an audio stream according to this documentation: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-transcribe-streaming/. The audio stream is then passed to transcribe with all of the syntax from the official docs. I receive a response 200 from the API, but upon parsing it I get the error “Cannot read property '0' of undefined”.
I've tried several methods for creating the audio stream, but am finding it difficult to debug since I am getting a 200 response from the API, and no errors until I parse the output. I am parsing according to the function described in the documentation. The error seems to be on line 2190 of this code
https://github.com/aws/aws-sdk-js-v3/blob/eea8b2e3/clients/client-transcribe-streaming/src/models/models_0.ts#L2063
and similar to the issue #3365.
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions