Skip to content

Differentiate timeout vs prebuilt binary failure in 500 error message#1087

Merged
styfle merged 4 commits intomainfrom
copilot/fix-500-error-message
Feb 9, 2026
Merged

Differentiate timeout vs prebuilt binary failure in 500 error message#1087
styfle merged 4 commits intomainfrom
copilot/fix-500-error-message

Conversation

Copy link
Contributor

Copilot AI commented Feb 9, 2026

The 500 error page always blamed "no prebuilt binary" regardless of cause. When the install aborts after the 26s timeout, users should see a timeout-specific message instead.

  • src/pages/_document.tsx: Detect ABORT_ERR code on caught errors, pass isTimeout prop to <ServerError>
  • src/pages/500.tsx: Conditionally render timeout message ("package took too long to install") vs the existing prebuilt binary message

When a timeout occurs, the user now sees:

"This can happen when the package took too long to install and the request timed out."

Instead of the misleading prebuilt binary message.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link

vercel bot commented Feb 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
packagephobia Ready Ready Preview Feb 9, 2026 6:03pm

Co-authored-by: styfle <229881+styfle@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix 500 error message to include timeout reason Differentiate timeout vs prebuilt binary failure in 500 error message Feb 9, 2026
Copilot AI requested a review from styfle February 9, 2026 13:17
@styfle styfle marked this pull request as ready for review February 9, 2026 18:00
@styfle styfle enabled auto-merge (squash) February 9, 2026 18:02
@styfle styfle merged commit f85cf44 into main Feb 9, 2026
5 checks passed
@styfle styfle deleted the copilot/fix-500-error-message branch February 9, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants