Skip to content
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

Error swallowed for ipfs get when sending output to /dev/null #27

Open
justindotpub opened this issue Sep 14, 2022 · 0 comments
Open

Error swallowed for ipfs get when sending output to /dev/null #27

justindotpub opened this issue Sep 14, 2022 · 0 comments

Comments

@justindotpub
Copy link
Contributor

File this issue to the appropriate upstream project, or a PR.

# When we don't have anything under the CID, we get the "not found locally" error as expected
$ ipfsi 1 get QmWXCR7ZwcQpvzJA5fjkQMJTe2rwJgYUtoSxBXFZ3uBY1W --offline -o /dev/null
Error: block was not found locally (offline): ipld: could not find QmWXCR7ZwcQpvzJA5fjkQMJTe2rwJgYUtoSxBXFZ3uBY1W

# For this CID, I have some children but not all.  With redirect to /dev/null there is no "not found locally" error
$ ipfsi 1 get QmZZ52hRLbWnE7BKvxxTyjG4sX2uWtyjgUgM2w8LUYrioz --offline -o /dev/null
Saving file(s) to /dev/null
 46.42 KiB / 46.42 KiB [==========================================================================================] 100.00% 0s

# If I don't redirect to /dev/null I see the "not found locally" error after the download of the CIDs we have
$ ipfsi 1 get QmZZ52hRLbWnE7BKvxxTyjG4sX2uWtyjgUgM2w8LUYrioz --offline             
Saving file(s) to QmZZ52hRLbWnE7BKvxxTyjG4sX2uWtyjgUgM2w8LUYrioz
 46.42 KiB / 46.42 KiB [==========================================================================================] 100.00% 0s
Error: block was not found locally (offline): ipld: could not find QmUPqayeHDexr1nMjURxBLyEF7CAEckv5c9U5LmbBaYmem
@justindotpub justindotpub self-assigned this Sep 14, 2022
@justindotpub justindotpub removed their assignment Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant