Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server send data has no participant #203

Closed
DeoLeung opened this issue May 21, 2024 · 1 comment
Closed

server send data has no participant #203

DeoLeung opened this issue May 21, 2024 · 1 comment

Comments

@DeoLeung
Copy link

if i do

      req = SendDataRequest(room='abc',
                            data=json.dumps({
                                'event': 'a',
                                'data':'b'
                            }))
        await room.send_data(req)

rtc room will fail with

/livekit/rtc/room.py", line 455, in _retrieve_remote_participant
     participant = self.participants[sid]
                 ~~~~~~~~~~~~~~~~~^^^^^
 KeyError: ''

currently inherited Room to workaround

self.participants.get(sid)

just new to livekit and not sure if we need a participant for server sent data

@theomonnom
Copy link
Member

Hey, this should be fixed with #215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants