Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fetch dynamic error handling #50822

Merged
merged 1 commit into from Jun 6, 2023

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Jun 6, 2023

Updates to not throw the dynamic server error inside of the patched fetch as it's typical for fetch errors to be caught and handled and this error is not meant to be caught by users. This instead throws it during rendering so we can ensure we catch it instead of users.

x-ref: https://github.com/vercel/next.js/actions/runs/5182384027/jobs/9339123096

@ijjk ijjk merged commit 8e9613f into vercel:canary Jun 6, 2023
27 of 28 checks passed
@ijjk ijjk deleted the update/fetch-dynamic-error branch June 6, 2023 04:47
hydRAnger pushed a commit to hydRAnger/next.js that referenced this pull request Jun 12, 2023
Updates to not throw the dynamic server error inside of the patched
fetch as it's typical for fetch errors to be caught and handled and this
error is not meant to be caught by users. This instead throws it during
rendering so we can ensure we catch it instead of users.

x-ref:
https://github.com/vercel/next.js/actions/runs/5182384027/jobs/9339123096
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant