Skip to content

supress non timeout abort errors - #4098

Open
MichaelWest22 wants to merge 1 commit into
bigskysoftware:four-devfrom
MichaelWest22:abort-timeout
Open

MichaelWest22 wants to merge 1 commit into
bigskysoftware:four-devfrom
MichaelWest22:abort-timeout

Conversation

@MichaelWest22

@MichaelWest22 MichaelWest22 commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Abort errors from intentional aborts from hx-sync or manual htmx:abort calls all throw htmx:error with the same error message as timeout errors. These errors are not useful really as we only throw the error and catch it to allow us to abort the request. So we can block these from triggering errors and just leave the timeout request error which can be useful.

Corresponding issue:
#4021

Testing

Added tests and updated htmx:error test expectations.

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (master for website changes, dev for
    source changes)
  • This is either a bugfix, a documentation update, or a new feature that has been explicitly
    approved via an issue
  • I ran the test suite locally (npm run test) and verified that it succeeded

@MichaelWest22 MichaelWest22 added the htmx 4 Issues specific to htmx version 4 label Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

htmx 4 Issues specific to htmx version 4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant