-
Notifications
You must be signed in to change notification settings - Fork 324
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
Use original gateway URL for content routing (async fetch of blocks and cars) #1042
Comments
Detail: So we still think ipfs-companion can solve the problem by retry the gateway url itself after fail to found in local ipfs node. (use gateway whitelist set by user, not only one default gateway) Thanks! |
@lidel to respond on here with further information |
@askender I think you should contact Infura and explain your needs to them:
As for what we can do in IPFS Companion – we won't add any special handling per gateway. Gateways are generic interface that aims to remove vendor lock-in. We also can't silently decrease integrity guarantees: users choose to use local IPFS gateway to ensure hash of every block and CID is verified. Potential feature request: async fetch of block and CAR from the original public gatewayMy understanding is that a realistic feature request here is to leverage a list of public gateways for content routing when loading data via local gateway takes a long time (more than n seconds), and fetch them as raw Block or CAR (in a way that still verifies every block). This is a sensible feature request, but is not possible to do without Verifiable HTTP Gateway Responses (ipfs/in-web-browsers#128).
tl;dr blocked until
|
ipfs-companion
Verifiable gateway responses are now possible: https://docs.ipfs.tech/reference/http/gateway/#trustless-verifiable-retrieval Companion should be able to monitor URLs and log when a public gateway URL is requested, then detect when top-level document load takes more than a few seconds, and accelerate it by requesting blocks over HTTP from the original gateway. This should be enabled by default, with opt-out toggle on Settings page. |
tl;dr: #1042 (comment)
Describe the bug and To Reproduce
If we are using ipfs-companion, some gateway url cannot be openned. It only try to find the content at local ipfs node, never retry the gateway url itself.
To Reproduce
Steps to reproduce the behavior:
ipfs-companion
well for Chrome, and running a local ipfs daemon.ipfs-companion
, then retry to open https://bafybeiae5c2ip2xxd5vvbnteu2sxntnmvgqqyt3we2s3hzbbcfifdsz3ya.ipfs.infura-ipfs.io/ again, it can be opened now.ipfs-companion
ipfs-companion
cannot fix this problem.Expected behavior
A url like
https://bafybeiae5c2ip2xxd5vvbnteu2sxntnmvgqqyt3we2s3hzbbcfifdsz3ya.ipfs.infura-ipfs.io/
can be opened even if it is not in local ipfs node.Screenshots
No.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: