Discussions
Failed to initialize an avatar session after the
main.ts:202
POST https://api.heygen.com/v1/streaming.new 400 (Bad Request)
initializeAvatarSession @ main.ts:202
await in initializeAvatarSession
handleConnectClick @ CourseContent.js:337
await in handleConnectClick
(anonymous) @ CourseContent.js:257
setTimeout
$ReactRefreshModuleRuntime$ @ CourseContent.js:1432
./src/components/CourseContent.js @ CourseContent.js:1432
options.factory @ react refresh:6
webpack_require @ bootstrap:22
_requireSelf @ hot module replacement:101
apply @ jsonp chunk loading:441
(anonymous) @ hot module replacement:341
internalApply @ hot module replacement:339
(anonymous) @ hot module replacement:277
waitForBlockingPromises @ hot module replacement:232
(anonymous) @ hot module replacement:275
Promise.then
(anonymous) @ hot module replacement:274
Promise.then
(anonymous) @ hot module replacement:255
Promise.then
hotCheck @ hot module replacement:246
main.ts:282 Failed to initialize avatar session: APIError: API request failed with status 400
at new APIError (index.esm.js:235:1)
at StreamingAvatar. (index.esm.js:563:1)
at step (index.esm.js:67:1)
at Object.next (index.esm.js:48:1)
at fulfilled (index.esm.js:38:1)
I am getting a failed to initialize an avatar session with 400 after the deprecation of v1 streaming avatar api. However, my integration was using the streaming avatar SDK. It was working flawlessly but it started from 28th which matches the deprecation date of v1 api integration.
This is the network tab.