connectOpenAi fails with server_error code 42 while OpenAI Realtime direct test succeeds
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- javascript, next.js, node.js
调研方向
从 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
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GetStream/openai-tutorial-node 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 25/100
查看 GetStream/openai-tutorial-node 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 75/100
docToolchain/docToolchain#1705 ·
-
Timezone select lists one option per character; duplicate "Failed" reason; shared tracker popover id 未关闭bug
难度 2/5 1-3 小时 新手友好度 75/100
nightscout/nocturne#1414 ·
-
bug v2
难度 2/5 1-3 小时 新手友好度 75/100
modelcontextprotocol/inspector#2458 · 1 条评论 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
难度 2/5 1-3 小时 新手友好度 70/100
carbon-design-system/ibm-products#9907 ·