-
Notifications
You must be signed in to change notification settings - Fork 110
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
gx import not working in mainland China #181
Comments
What's the output of Basically, TL;DR: If you set |
The output of echo "$IPFS_API" is blank but I'm pretty sure the IPFS daemon is running and gx is connected to the daemon. I've seen someone claimed that when using daemon, IPFS still have to resolve ipfs.io, and his solution is to modify shell.go to use proxy:
I don't have a proxy right now so I didn't try this out. Any other possible solutions? Is that true the IPFS network has to resolve ipfs.io to get working? Thanks in advance. |
That only applies if you're trying to use our gateway (at ipfs.io). If you're using your own daemon, you won't need that.
No although the daemon does need to connect to some of our bootstrap nodes to find the rest of the network. If you have any friends running IPFS, you can bootstrap off of them by adding them to the list (using
Are you running the daemon? What's the output of |
Yes I started daemon by using command ipfs daemon. The output of ipfs id:
Also the command ipfs swarm peers shows that I've connected to a lot of peers. I tried obtain file from IPFS network and publish a file to IPFS and they both work fine. I'm running IPFS daemon in an VM but I suppose that makes no differences . |
As long as I assume you ran the |
|
I'm trying to read the source code of ipfs and learned that ipfs uses gx as its package manager. However, due to the existence of GFW, the gx import always fail after a timeout like:
ERROR: from shell.Get(): Post http://127.0.0.1:5001/api/v0/get?arg=QmYM2pipuZdMKKgU6m8wNN7F7sL64ipaCCf3p6VJpKHdb1&encoding=json&stream-channels=true: net/http: request canceled (Client.Timeout exceeded while awaiting headers) retrying fetch QmYM2pipuZdMKKgU6m8wNN7F7sL64ipaCCf3p6VJpKHdb1 after a second...
My suspicion is that the gx command has to reslove ipfs.io which is blocked by the GFW. Is there any way I can overcome this problem? Is there any way gx work as a pure decentralized tool?
The text was updated successfully, but these errors were encountered: