Discussions
Internal server error
I'm attempting to start a session using the https://api.liveavatar.com/v1/sessions/start endpoint. However, when I do so by passing in a session token (either using http fetch request, via the @heygen/liveavatar-web-sdk, or via the documentation pages to test the APIs) it consistently results in a 500 internal server error.
Is there a dashboard that shows error calls to the apis that I can use to debug this?
The request below generates a session token ok
curl --request POST
--url https://api.liveavatar.com/v1/sessions/token
--header 'X-API-KEY: XXX'
--header 'accept: application/json'
--header 'content-type: application/json'
--data '
{
"mode": "FULL",
"avatar_id": "XXX",
"avatar_persona": {
"voice_id": "XXX",
"context_id": "XXX",
"language": "en"
}
}
'
But when that session token is passed into the subsequent request below as a Bearer token, the API to start the session gives a internal server error. This is true when creating the context_id either via the api, or via the web portal.
curl --request POST
--url https://api.liveavatar.com/v1/sessions/start
--header 'accept: application/json'
--header 'authorization: Bearer XXX'