Skip to content

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

Closed
SgtPooki wants to merge 1 commit into
feat/use-blockstore-sessions-patchfrom
feat/use-blockstore-sessions-patch-2
Closed

test(fix): interop UnixFS-chunked JSON file#56
SgtPooki wants to merge 1 commit into
feat/use-blockstore-sessions-patchfrom
feat/use-blockstore-sessions-patch-2

Conversation

@SgtPooki
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

verifiedFetch = await createVerifiedFetch({
gateways: [`http://${controller.api.gatewayHost}:${controller.api.gatewayPort}`],
routers: [`http://${controller.api.gatewayHost}:${controller.api.gatewayPort}`]
routers: []
Copy link
Copy Markdown
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
Copy Markdown
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