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

Bugs / IPFS not found error handling #158

Merged
merged 2 commits into from Apr 6, 2023

Conversation

sergiimk
Copy link
Member

@sergiimk sergiimk commented Apr 6, 2023

Closes: #108

Kubo developers unfortunately decided to report failure to find a CID as HTTP 500 status code, because returning 404 would imply non-existence, and IPFS is decentralized thus cannot guarantee the CID actually does not exist.

I don't agree with this reasoning as it makes impossible to distinguish actual malfunction of the IPFS HTTP gateway from "I tried, but didn't find CID in reasonable time". But we'll have to live with it I guess.

Also localized IPNS-related shenanigans in DatasetFactoryImpl, offloading a bit of responsibilities from too complex SyncServiceImpl.

@sergiimk sergiimk merged commit a8ed855 into master Apr 6, 2023
5 checks passed
@sergiimk sergiimk deleted the bugs/ipfs-not-found-error-handling branch April 6, 2023 22:26
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

Successfully merging this pull request may close these issues.

Latest kubo breaks key-based IPNS sync
1 participant