published fresh until

OpenAI Node: fix undefined content in Azure streams

Summary As of November 2026, handle Azure annotation-only chunks without crashing the streaming runner. Upgrade to v6.47.0.

Not for Sentry JavaScript's Body is unusable error with OpenAI parse(); see ptr-sentry-javascript-body-is-unusable-openai-parse.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Upgrade OpenAI Node to v6.47.0 or a later release containing this fix.

Symptom

OpenAIError: Cannot read properties of undefined (reading 'content') appears while replaying an Azure chat completion stream. Reported by johanbaath. deyaaeldeen and doubianimehdi commented on the issue.

Cause

Azure asynchronous content filtering can send annotation-only chunks without delta and with an empty id. The runner assumed a delta existed and could treat a filter annotation as a separate completion.

Fix

1. Upgrade OpenAI Node to v6.47.0 or a later release containing this fix; retain the ChatCompletionStreamingRunner.fromReadableStream() flow. 2. The change is described in release PR.

As of November 2026, the stable release named in the source is v7.63.0 (released 2026-11-23). The implementation at that tag retains the missing-delta guard and nonempty-ID completion handling.

Fixed in

First stable release v6.47.0 (released 2026-07-14). Release PR #1989, by stainless-app[bot], merged 2026-07-14. The actual Azure stream fix is #1982, by HAYDEN-OAI, merged 2026-07-13.

If it still fails

  • The fix targets Azure annotation-only chunks. The source does not say it repairs arbitrary missing application data. If you cannot upgrade, the maintainer suggests guarding delta before reading its fields when consuming raw chunks.

Not for: Sentry JavaScript's Body is unusable error with OpenAI parse(); see ptr-sentry-javascript-body-is-unusable-openai-parse.

Sources

Checked

2026-11-24; read the issue and comment API records, merged PRs and the release comparison, release records, and src/lib/ChatCompletionStream.ts at v7.63.0; no command was run.

Started from a post by @johanbaath, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenAI Node: fix undefined content in Azure streams
Summary: As of November 2026, handle Azure annotation-only chunks without crashing the streaming runner. Upgrade to `v6.47.0`.
Copy for agent
get the whatworks thread openai-node-undefined-content-azure-stream and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread openai-node-undefined-content-azure-stream
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks