Discussions

Ask a Question
Back to all

session failed after a few seconds

2025-09-29 13:01:58,004 - api.ai_avatar - ERROR - HeyGen API error: {"code":10002,"message":"invalid session state: closed"}
2025-09-29 13:01:58,005 - api.ai_avatar - ERROR - Session 7dc2d068-9d0a-11f0-a397-4658734a8349 is closed, cleaning up
2025-09-29 13:01:58,006 - api.ai_avatar - INFO - Cleaned up session: 7dc2d068-9d0a-11f0-a397-4658734a8349
2025-09-29 13:01:58,007 - api.ai_avatar - ERROR - Unexpected error: 400: Failed to send task
INFO: 127.0.0.1:52112 - "POST /api/avatar/session/task HTTP/1.1" 500 Internal Server Error

I have added the timeout 3600, but it expires after a while iam using the api for this .