Discussions

Ask a Question
Back to All

Interactive Avatar Creation TypeError

Hi,

I posted about this issue a few days ago but it went unsolved.

I cloned the Heygen Tutorial Repo (https://github.com/HeyGen-Official/StreamingAvatarTSDemo) and then pasted my API key into the .env file. I did not change anything else.

However, when I press the "start" button, I am getting "Error starting avatar session: TypeError: Cannot read properties of undefined (reading 'close')
at StreamingAvatarApi. (StreamingAvatarApi.js:561:1)
at step (StreamingAvatarApi.js:61:1)
at Object.throw (StreamingAvatarApi.js:42:1)
at rejected (StreamingAvatarApi.js:34:1)."

Can someone help me figure out what's going wrong?

While I do not know how to post a screenshot here, I did post a screenshot of my console panel here: https://community.heygen.com/home/forum/boards/general-j8h/posts/api-call-error-r345n40kb0?commentId=67ffa15850921c54b771fd4a

Thanks,

Ryan