Discussions

Ask a Question
Back to All

Streaming Avatar Never Connects

How can I debug a streaming avatar never connecting? When I call streaming.list, it's always listed with the status "connecting". My my application is connected to the livekit server, but an avatar never connects. For context, I'm connected with LiveKit and do not have the option to use the typescript sdk. Do yall have a way on your end to see what went wrong between creating the livekit server and the avatar connecting to it?

my application

2024-11-14T11:42:34-0800 info LiveKitSDK : [LiveKit] Room.connect(url:token:connectOptions:roomOptions:) Connected to Room(sid: Optional(), name: 9784c2b1-a2c0-11ef-90e6-caf3d469ab2d, serverVersion: 1.8.0, serverRegion: US West)
Successfully connected to LiveKit room

/v1/streaming.list

{  
    "code": 100,  
    "data": {  
        "sessions": [  
            {  
                "session_id": "9784c2b1-a2c0-11ef-90e6-caf3d469ab2d",  
                "status": "connecting",  
                "created_at": 1731613353,  
                "api_key_type": "regular"  
            }  
        ]  
    },  
    "message": "success"  
}

my backend

Initialized HeyGenHttpClient with baseUrl: https://api.heygen.com/v1
Creating new streaming session with request: {
  avatar_name: 'josh_lite3_20230714',
  quality: 'low',
  knowledge_base_id: '',
  voice: { rate: 1.5, emotion: 'Excited' },
  version: 'v2',
  language: 'en',
  video_encoding: 'H264'
}
Successfully created streaming session: {
  "code": 100,
  "data": {
    "session_id": "9784c2b1-a2c0-11ef-90e6-caf3d469ab2d",
    "sdp": null,
    "access_token": "[OMITTED]",
    "url": "wss://heygen-feapbkvq.livekit.cloud",
    "ice_servers": null,
    "ice_servers2": null,
    "is_paid": false,
    "session_duration_limit": 600
  },
  "message": "success"
}