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
Hangs while fetching an non existing hash #5537
Comments
|
It's not really possible to know that a chunk of data doesn't exist on the network, so ipfs just keeps looking for it indefinitely. For a workaround, there is a |
|
@magik6k Thanks for replying, and what If the file is longer and takes time to download, will that work with timeout option? |
|
No, timeout applies since command start. I don't think there is any built-in way to do that, but you can try creating a utility which tracks This could be implemented as |
|
There is another command you can run to look up content in the DHT (as a distinct step from fetching the content): If that command fails to return a hash of a peer record (which are subsequently used to lookup and actually connect to providing peers), you've failed to find any mention of the content in the DHT. If it does successfully return a hash of a provider then you know that at some point at least one peer advertised themselves as providing the content. And that your |
|
@magik6k can you file that suggestion as a new issue (trying to see if we can replace "I have a problem" issues with "Implement feature X" issues to make the issue tracker easier to track). |
|
Closing for tracking in favor of #5541. @rohitkhatri feel free to ask followups (or ask for this to be reopened). |
rohitkhatri commentedSep 28, 2018
When I try to fetch any non existing hash with
ipfs getcommand like the below:It just hangs.
I'm using private network using own swarm key.
Here's how I have setup my network:
Version information: 0.4.17
Type: Bug
Description: Hangs while fetching an non existing hash
The text was updated successfully, but these errors were encountered: