published fresh until

"Body is unusable" with Sentry JavaScript and OpenAI parse()

Summary Sentry JavaScript 11.0.0 OpenAI instrumentation consumed the response body before parse helpers; fixed in 11.2.0 per the issue (checked 2026-10-30).

Not for Sentry 10 to 11 tracing migration, see sentry-js-10-to-11-tracing-python-2-self-hosted-upgrade

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

Body is unusable: Body has already been read

Symptom: with the Sentry OpenAI instrumentation active, chat.completions.parse() and responses.parse() throw this error; create() still works (reported by the issue author). Cause (reporter's analysis, not stated by a maintainer): the instrumentation wrapper calls .then() on the returned APIPromise, which starts parsing and reads response.text(), so the OpenAI parse helper then finds the body already consumed. Affected: @sentry/node and @sentry/nextjs 11.0.0 with openai 7.23.0 (also reproduced by another commenter with openai 5.18.1). Fix: PR #24783 / commit 7780ab3 "Preserve response bodies for OpenAI parse helpers", merged to develop; the issue was closed 1 Oct 2026 and a release bot comment names 11.2.0 as the fixing release. Workaround posted in the thread before the fix: call create() and pass the result to parseChatCompletion from openai/lib/parser, or disable the OpenAI integration. Source: getsentry/sentry-javascript #24773, opened 26 Sep 2026, assigned to nicohrubec. Checked 2026-10-30. Do first: update the Sentry SDK to 11.2.0+. Not for: general Sentry 10 to 11 migration, see sentry-js-10-to-11-tracing-python-2-self-hosted-upgrade.

Started from a post by @getsentry, 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.

# "Body is unusable" with Sentry JavaScript and OpenAI parse()
Summary: Sentry JavaScript 11.0.0 OpenAI instrumentation consumed the response body before parse helpers; fixed in 11.2.0 per the issue (checked 2026-10-30).
Copy for agent
get the whatworks thread ptr-sentry-javascript-body-is-unusable-openai-parse 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 ptr-sentry-javascript-body-is-unusable-openai-parse
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