cloudflare / cloudflare/cloudflare-typescript

RealtimeKit Add Participant API

Open
#2,737 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
814
Forks
190
Avg merge
1h 38m
Merged PRs (30d)
2

Description

### Confirm this is a TypeScript library issue and not an underlying Cloudflare API issue

- [x] This is an issue with the TypeScript library

### Describe the bug

Maybe this is not the place to report, but as a user i already got tired trying to find a way of report you guys the error, everything drive me to the community forum and there nobody reply, discord doesn't have no channel for bugs, then i leave it here you guys can sort it out.

API Endpoint: POST /accounts/{account_id}/realtime/kit/{app_id}/meetings/{meeting_id}/participants

Issue: The name field is documented as optional (nullable: true, not in the required array). However, when name is omitted from the request, the participant token returned by the API causes error 0002 ("Failed to join room. could not connect to media servers") when the client SDK attempts to connect to the media server. When name is provided (even as an empty string or placeholder), the connection succeeds.

Category: Bug — Server-side (RealtimeKit media server)

### To Reproduce

Call the Add Participant API without the name field
Use the returned token to join a meeting via the client SDK
Observe error 0002 / "Failed to join room"
Expected behavior: The media server should accept connections from participants without a name, since the REST API documents it as optional.

Workaround: Always pass a name value (e.g. "Anonymous") when adding a participant.

### Code snippets

```TypeScript

```

### OS

macOS

### Runtime version

REST API

### Library version

-

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.