boxo icon indicating copy to clipboard operation
boxo copied to clipboard

gateway: make it easier to retry from HTML error page for 504 Timeouts

Open lidel opened this issue 2 years ago • 1 comments

Problem

When we timeout, gateway shows non-actionable error that says "context deadline expired".

The text/html response returned to browser users is not much better, just prettier.

Very often refreshing page again will succeed, but users do not know that.

Solution

We should make text/html responses for HTTP 504 errors actionable.

Initial ideas

  • (MVP) Add "Retry" button that forces 504 error page to reload (window.location.reload()?)
  • (optional/additional) Add <meta http-equiv="refresh" content="60"/> which will automatically refresh the tab after 1 minute (this way if someone left page loading, and it errored, it may self-heal before user is back to notice the error)

lidel avatar Aug 10 '23 17:08 lidel

This becomes feasible once https://github.com/ipfs/boxo/pull/994 ships.

lidel avatar Aug 14 '25 21:08 lidel