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

fix(remix): Skip capturing aborted requests. #9659

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

onurtemizkan
Copy link
Collaborator

Possibly Related: #9593

Remix documentation suggests users avoid capturing aborted requests.

@onurtemizkan onurtemizkan marked this pull request as ready for review November 27, 2023 14:00
@@ -89,6 +89,13 @@ export async function captureRemixServerException(err: unknown, name: string, re
return;
}

// Skip capturing if the request is aborted as Remix docs suggest
// Ref: https://remix.run/docs/en/main/file-conventions/entry.server#handleerror
if (request.signal.aborted) {
Copy link
Member

Choose a reason for hiding this comment

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

does this exist in older Remix versions?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just checked, yes 👍

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) November 27, 2023 14:14
@AbhiPrasad AbhiPrasad merged commit 4c75f85 into develop Nov 27, 2023
56 checks passed
@AbhiPrasad AbhiPrasad deleted the onur/skip-aborted-requests branch November 27, 2023 14:22
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