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
- Using
@sentry/node with express instrumentation
- Calling
streamText()
- Potentially abort request via
abortSignal
Expected Result
Regular abort, no errors.
Actual Result
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.