Discussions

Ask a Question
Back to All

Support Request: Unable to Initialize Avatar Session Due to API Error 400

Dear Sam Support Team

I have previously contacted the support center regarding the following issue but have not yet received a response. I am seeking assistance with the problem described below:

__
sessionData = await avatar.createStartAvatar({
quality: AvatarQuality.Medium,
avatarName: "Santa_Fireplace_Front_public",
language: "English"
});
__

In an environment where the HeyGen and InteractiveAvatar connection is already operational, I attempted to connect using the previously obtained Avatar ID:
__

avatarName: "17719ae2fd1140e29cf35cef3f98030c"
__

However, I encountered the following error:
__
Failed to initialize avatar session: APIError: API request failed with status 400
at new APIError2 (@heygen_streaming-avatar.js?v=dc63cde0:25827:26)
at StreamingAvatar2. (@heygen_streaming-avatar.js?v=dc63cde0:26166:21)
at step (@heygen_streaming-avatar.js?v=dc63cde0:25658:17)
at Object.next (@heygen_streaming-avatar.js?v=dc63cde0:25610:14)
at fulfilled (@heygen_streaming-avatar.js?v=dc63cde0:25582:24)
overrideMethod @ hook.js:608Understand this errorAI
@heygen_streaming-avatar.js?v=dc63cde0:25827 Uncaught (in promise) APIError: API request failed with status 400
at new APIError2 (@heygen_streaming-avatar.js?v=dc63cde0:25827:26)
at StreamingAvatar2. (@heygen_streaming-avatar.js?v=dc63cde0:26166:21)
at step (@heygen_streaming-avatar.js?v=dc63cde0:25658:17)
at Object.next (@heygen_streaming-avatar.js?v=dc63cde0:25610:14)
at fulfilled (@heygen_streaming-avatar.js?v=dc63cde0:25582:24)Understand this errorAI
main.ts:39

__

I have set the share settings to public. Is it possible to connect the created Interactive Avatar via API? If there are any additional requirements or configuration settings needed for API connection, please provide guidance.

__

I would appreciate your prompt assistance in resolving this matter.

Best regards,

Teppei Ishihara
ALOHAA Corp