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

test(fix): interop UnixFS-chunked JSON file #56

Conversation

SgtPooki
Copy link
Member

@SgtPooki SgtPooki commented Apr 17, 2024

@SgtPooki SgtPooki requested a review from a team as a code owner April 17, 2024 22:04
Copy link
Member Author

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

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

self review.

Comment on lines +297 to +301
if (err.code === 'ERR_NO_ROUTERS_AVAILABLE') {
// need to retry without sessions
// TODO: handle this better
return this.handleDagCbor({ resource, cid, path, accept, session: false, cacheKey, options })
}
Copy link
Member Author

Choose a reason for hiding this comment

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

AFAICT, there is no way to check this.helia.routing for routers length? feels like this should be handled in helia session management code

@@ -21,7 +21,7 @@ describe('@helia/verified-fetch - json', () => {
await loadFixtureDataCar(controller, 'QmQJ8fxavY54CUsxMSx9aE9Rdcmvhx8awJK2jzJp4iAqCr-tokens.uniswap.org-2024-01-18.car')
verifiedFetch = await createVerifiedFetch({
gateways: [`http://${controller.api.gatewayHost}:${controller.api.gatewayPort}`],
routers: [`http://${controller.api.gatewayHost}:${controller.api.gatewayPort}`]
routers: []
Copy link
Member Author

Choose a reason for hiding this comment

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

temp fix to stop endless routing caused by ipfs/helia#501

@SgtPooki
Copy link
Member Author

SgtPooki commented May 9, 2024

this was resolved in #50

@SgtPooki SgtPooki closed this May 9, 2024
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.

1 participant