Describe the bug
streamVideo.video.connectOpenAi() always fails with server_error code 42.
The agent never joins the call.
Endpoint: wss://video.stream-io-api.com/video/connect_agent
Response:
{"type":"server_error","code":"42","message":"Error: code "}
Environment
@stream-io/node-sdk: 0.4.24
@stream-io/openai-realtime-api: 0.4.0 (latest)
- Model:
gpt-realtime
- Call type:
default
- App API key:
zvgv9fafmjg3
What we already ruled out
- OpenAI key is valid and funded (Tier 1): a direct WebSocket to
wss://api.openai.com/v1/realtime?model=gpt-realtime with the same key
returns session.created successfully.
- Not an app-config issue: reproduced identically on a brand-new Stream
app created 2026-07-05 with default settings.
- Client already upgraded: with
openai-realtime-api 0.1.4 → 0.4.0 the
error is unchanged. The v0.4.0 client's own error message says the
/video/connect_agent backend must be updated to the GA Realtime API and
to contact support if the error persists after upgrading — it persists.
Repro
const call = client.video.call("default", callId);
await call.getOrCreate({ data: { created_by_id: "user-1" } });
await client.video.connectOpenAi({
call,
openAiApiKey: process.env.OPENAI_API_KEY!,
agentUserId: "agent-1",
model: "gpt-realtime",
}); // → server_error code 42
Expected
The agent connects to the call via the GA OpenAI Realtime API.
Is GA support rolled out per-app/region? Is there a flag we need enabled?
Thanks!
Describe the bug
streamVideo.video.connectOpenAi()always fails withserver_error code 42.The agent never joins the call.
Endpoint:
wss://video.stream-io-api.com/video/connect_agentResponse:
{"type":"server_error","code":"42","message":"Error: code "}Environment
@stream-io/node-sdk: 0.4.24@stream-io/openai-realtime-api: 0.4.0 (latest)gpt-realtimedefaultzvgv9fafmjg3What we already ruled out
wss://api.openai.com/v1/realtime?model=gpt-realtimewith the same keyreturns
session.createdsuccessfully.app created 2026-07-05 with default settings.
openai-realtime-api0.1.4 → 0.4.0 theerror is unchanged. The v0.4.0 client's own error message says the
/video/connect_agentbackend must be updated to the GA Realtime API andto contact support if the error persists after upgrading — it persists.
Repro
Expected
The agent connects to the call via the GA OpenAI Realtime API.
Is GA support rolled out per-app/region? Is there a flag we need enabled?
Thanks!