Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

connectOpenAi fails with server_error code 42 while OpenAI Realtime direct test succeeds

未关闭
#5 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清

调研方向

从 Next.js 应用中的 connectOpenAi 调用开始,检查所列出的 @stream-io/node-sdk 和 @stream-io/openai-realtime-api 版本以及 Vercel 部署。复现成功的 client_secrets 请求和失败的 agent 连接,然后确定该设置是否受支持,以及需要哪些 Stream 设置、权限或 entitlement。

由索引模型根据 Issue 内容生成。

描述

Hi Stream team,

I’m using Stream Video with OpenAI Realtime in a Next.js app deployed on Vercel.

Packages:

  • @stream-io/node-sdk@0.7.59
  • @stream-io/openai-realtime-api@0.3.3
  • Next.js 15.3.8
  • Deployed on Vercel

OpenAI Realtime direct test succeeds:

POST https://api.openai.com/v1/realtime/client_secrets
model: gpt-4o-realtime-preview
status: 200 OK

But Stream connectOpenAi fails:

const realtimeClient = await streamVideo.video.connectOpenAi({
call,
openAiApiKey: process.env.OPENAI_API_KEY,
agentUserId: "lucy",
model: "gpt-4o-realtime-preview",
});

Error:

{
type: "error",
error: {
type: "server_error",
code: "42",
message: "Error: code ",
param: null,
event_id: ""
}
}

Additional context:

  • The Stream call is created successfully.
  • The user joins successfully.
  • The agent user "lucy" appears to join and then leaves.
  • Webhooks show call.session_participant_joined and call.session_participant_left for lucy.
  • OpenAI Realtime client_secret endpoint returns 200 OK, so the OpenAI key and Realtime access appear valid.

Can you confirm whether connectOpenAi currently supports this setup, and whether any Stream app settings, permissions, or entitlements are required for OpenAI Realtime agents?

主要语言
JavaScript
星标
5
派生
3
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GetStream/openai-tutorial-node 的其他 Issue

查看 GetStream/openai-tutorial-node 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。