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

feat(gateway): error handling improvements (500, 502, 504) #9660

Merged
merged 3 commits into from
Feb 28, 2023

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Feb 22, 2023

test/cli/gateway_test.go Show resolved Hide resolved
test/cli/gateway_test.go Show resolved Hide resolved
@hacdias hacdias force-pushed the go-libipfs-errors branch 4 times, most recently from 4922af6 to a597d5e Compare February 23, 2023 16:32
@hacdias hacdias requested a review from lidel February 24, 2023 08:41
@lidel lidel changed the title feat: upgrade go-libipfs with better errors for gateway feat(gateway): improved error handling Feb 24, 2023
@hacdias hacdias changed the title feat(gateway): improved error handling fix(gateway): return 500 for all /ip[nf]s/id failures Feb 27, 2023
@hacdias hacdias changed the title fix(gateway): return 500 for all /ip[nf]s/id failures feat(gateway): error handling improvement and support for 502, 504 Feb 27, 2023
@hacdias
Copy link
Member Author

hacdias commented Feb 27, 2023

@lidel I reused this PR because the previous PR in go-libipfs was already making the tests fail here.

@lidel lidel changed the title feat(gateway): error handling improvement and support for 502, 504 feat(gateway): error handling improvements (500, 502, 504) Feb 28, 2023
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Merging to fix CI here and in go-libipfs.

@@ -11,7 +11,7 @@ import (
cidutil "github.com/ipfs/go-cidutil"
cmds "github.com/ipfs/go-ipfs-cmds"
bitswap "github.com/ipfs/go-libipfs/bitswap"
decision "github.com/ipfs/go-libipfs/bitswap/decision"
"github.com/ipfs/go-libipfs/bitswap/server"
Copy link
Member

@lidel lidel Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💭 because of monorepo, we have to touch unrelated bitswap files in a PR about gateway HTTP codes :|
this one is cosmetic, but i feel things like this will get even more nasty as the time goes by, and we change more things in go-libipfs, and we will end up blocking each other.

cc @ipfs/kubo-maintainers for visibility / ideas

@lidel lidel merged commit 1794649 into master Feb 28, 2023
@lidel lidel deleted the go-libipfs-errors branch February 28, 2023 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants