Skip to content

VercelAI instrumentation causing AI_NoOutputGeneratedError on aborts #17675

Description

@raymondhechen

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node - express

SDK Version

10.12.0

Framework Version

Vercel AI SDK @ 5.0.44

Link to Sentry event

https://msgtomo.sentry.io/issues/6868408096/?environment=production&project=4509992631140352&query=is%3Aunresolved&referrer=issue-stream

Reproduction Example/SDK Setup

Calling streamText() with VercelAI default instrumentation enabled results in the following error:

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
AI_NoOutputGeneratedError: No output generated. Check the stream for errors.

This does not always happen during generations, but I believe it particularly happens when the request gets aborted via abortSignal

Steps to Reproduce

  1. Using @sentry/node with express instrumentation
  2. Calling streamText()
  3. Potentially abort request via abortSignal

Expected Result

Regular abort, no errors.

Actual Result

Image

Additional Context

Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions