Skip to content

Conversation

@mclenhard
Copy link
Contributor

@mclenhard mclenhard commented Feb 10, 2026

Background

Client side timeouts were confusing to the user, so we wanted to improve the error message to link to the docs and explain how to modify fetch and undci header timeouts.

Summary

Manual Verification

pnpm tsx src/generate-text/gateway-timeout.ts

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Future Work

Related Issues

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

Missing await on async asGatewayError() in gateway-video-model.ts and gateway-image-model.ts causes a Promise object to be thrown instead of a GatewayError.

Fix on Vercel

}): GatewayTimeoutError {
const message = `Gateway request timed out: ${originalMessage}

This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gr2m gr2m merged commit a2208a2 into vercel:main Feb 11, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants