ipfs / ipfs/kubo

ipfs pin add and dag get hang when passed pin hash

Open
#4,199 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

#### Version information:
go-ipfs version: 0.4.10-
Repo version: 5
System version: amd64/linux
Golang version: go1.8.3

#### Type:
Bug

#### Severity: Very Low

#### Description:
When I do `ipfs pin add` or `ipfs dag get` on an ipns hash it hangs indenfinitely. It would be much less confusing if it were to either work or error out saying that the given hash is an ipns entry.

Ex:
````
timothy@yoga ~/p/p/associate> ipfs dag get QmdJiuMWp2FxyaerfLrtdLF6Nr1EWpL7dPAxA9oKSPYYgV
^C
Error: request canceled
timothy@yoga ~/p/p/associate> ipfs name resolve QmdJiuMWp2FxyaerfLrtdLF6Nr1EWpL7dPAxA9oKSPYYgV
/ipfs/QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco
timothy@yoga ~/p/p/associate> ipfs dag get /ipfs/QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco

{"data":"CAUSFQEABAAAAAAAAAEAAAgAAAAAAAAQACgiMIAC","links":[{"Cid":{"/":"QmPQVLHXAcDLvdf6ni24YWgGwitVTwtpiFaKkMfzZKquUB"},"Name":"0C-","Size":237360},{"Cid":{"/":"QmNYBYYjwtCYXdA2KC68rX8RqXBu9ajBM6Gi8CBrXjvk1j"},"Name":"43I","Size":44323016540},{"Cid":{"/":"QmehSxmTPRCr85Xjgzjut6uWQihoTfqg9VVihJ892bmZCp"},"Name":"58wiki","Size":613715579624},{"Cid":{"/":"QmaeP3RagknCH4gozhE6VfCzTZRU7U2tgEEfs8QMoexEeG"},"Name":"92M","Size":826},{"Cid":{"/":"QmdgiZFqdzUGa7vAFycnA5Xv2mbcdHSsPQHsMyhpuzm9xb"},"Name":"A0index.html","Size":165}]}
timothy@yoga ~/p/p/associate>
````
I was confused enought by the first command hanging that I spent the mandatory 20 minutes of looking for duplicate bug reports and reporting a bug...

Related: https://github.com/ipfs/go-ipfs/issues/1467

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.