Recover from dead Public Gateways #640
Labels
good first issue
Good issue for new contributors
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
status/ready
Ready to be worked
By default Companion will redirect IPFS paths to local gateway, so even if remote HTTP server is down, content will load just fine over IPFS.
What if user does not have locally running IPFS node tho?
We are able to detect HTTP errors in WebExtensions/API/webRequest/onErrorOccurred:
A rough idea would be to do what we already do for websites with DNSLink:
Caveats:
onErrorOccurred
so we recover in a new tab, which means this will only work for the main request (URL in location bar), won't fix images embedded from a gateway that went offline.Prior art:
The text was updated successfully, but these errors were encountered: