-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ipfs refs times out #1050
Comments
does it time out for blocks that you know are available somewhere? |
Yes. — On Sat, Apr 11, 2015 at 12:02 PM, Jeromy Johnson notifications@github.com
|
I looked into this twice and honestly, I couldn't make heads or tails of it. There is really now structured way of handling contexts right now and you can still find The problem I had tracking this down betters is, that we are passing up errors plainly without wrapping them. I.e. _, err := coreStuff.It(...)
if err != nil {
return err
}
// instead of
_, err := coreStuff.It(...)
if err != nil {
return errgo.Wrap(err, "we failed to Stuff.It ")
} Without this, the timeout cancelations end up as plain I had good experiences with errgo, like that from juju or gopkg.in to make errors more expressive. With some discussion of corse, I'd like to start introducing it in the next sprint. Having a general pattern for error handing would help us in general I think. This is still alpha software after all and proper error traces would also help us with big reports from users. |
most likely, something is happening that just causes the channel of keys to be closed prematurely. we need a way of signalling that a channelmarshaler has failed. |
this has been addressed |
ipfs refs -r <ref>
sometimes times out for me, and returns a 0 error code!!! it should return an error code...The text was updated successfully, but these errors were encountered: