-
-
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
Gateway broken for IPNS entries #1150
Comments
@dylanPowers is that on master? it works for me. |
Yes master after the new dnslink feature |
ah |
Specifically I'm seeing it on 196c6aa |
This is because we need to use I attempted to make the fix, but i have no idea whats going on in there. |
Some logging reviled that
|
This makes it work for me: func (i *gatewayHandler) ResolvePath(ctx context.Context, p string) (*dag.Node, string, error) {
- p, err := i.resolveNamePath(ctx, p)
+ node, err := core.Resolve(i.node, path.Path(p))
if err != nil {
return nil, "", err
}
- node, err := i.node.Resolver.ResolvePath(path.Path(p))
- if err != nil {
- return nil, "", err
- }
- return node, p, err
+ return node, p, nil
} but this would ignore the I'm not sure what this cancels are for. I guess, the idea is to cancel the related swarm communications after the http request is done? |
@cryptix good point on the context cancelling, I think that we could honestly make core.Resolve take a context. Its probably a good idea anyways |
Agreed that |
arg-- this bug bit me in a demo for Brewster at the Internet Archive-- can we get it fixed asap?
yes, cancel all long ops kicked off by this http request.
👍 @cryptix that solution LGTM |
@jbenet OK, nice! Just was waiting for the green light on this. I started refactoring |
On Tue, Apr 28, 2015 at 06:39:16AM -0700, Henry wrote:
I was looking through namesys last night to get references for the |
On Tue, May 05, 2015 at 07:27:55AM -0700, W. Trevor King wrote:
@whyrusleeping cleared this up on IRC, pointing out that ParsePath is |
I think the sharness tests should test the IPNS part of the gateway. |
We should test this to make sure it works. |
Ok looks like this is fixed! (confirm @dylanPowers ?) |
Works! So nice to get this back operating 👍 |
Go to http://localhost:8080/ipns/QmSJ5B27yQe9bDLmwqF4FxJpBBcpxMnK9uJwX8qbQUyycN
Result:
ipfs name resolve QmSJ5B27yQe9bDLmwqF4FxJpBBcpxMnK9uJwX8qbQUyycN
on the other hand works fine.@whyrusleeping
The text was updated successfully, but these errors were encountered: