RealtimeKit Add Participant API

Open
#2,737 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
typescript

Research direction

Start by reproducing the POST /accounts/{account_id}/realtime/kit/{app_id}/meetings/{meeting_id}/participants request without name, then use the returned token with the client SDK. Compare the documented optional field with the observed error 0002 and determine whether the fix belongs in the TypeScript library or the RealtimeKit media server. Done means participants without a name can join successfully, or the API documentation matches the required behavior.

Written by the indexing model from the issue text.

Description

Confirm this is a TypeScript library issue and not an underlying Cloudflare API issue
  • 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

OS

macOS

Runtime version

REST API

Library version
Dominant language
TypeScript
Stars
835
Forks
201
Avg merge
41m
Merged PRs (30d)
1

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudflare/cloudflare-typescript

All issues in cloudflare/cloudflare-typescript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.