When a form submitted by Turbo gets no response, Turbo dispatches turbo:fetch-request-error and turbo:submit-end, then throws the same error again where nothing catches it. The browser logs Uncaught (in promise) TypeError: Failed to fetch.
The page in this gist handles the failure in both ways Turbo offers, one per form:
- Form A cancels
turbo:fetch-request-error. - Form B handles
detail.errorinturbo:submit-end.
Both still end in an unhandled rejection.