-
Notifications
You must be signed in to change notification settings - Fork 489
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
Enabling WebTransport in Kubo v0.16.0-rc1 breaks Status page #2033
Comments
> rg 'const res = await api.post\('\''id' node_modules
node_modules/ipfs-core/node_modules/ipfs-http-client/src/id.js
18: const res = await api.post('id', {
node_modules/ipfs-cli/node_modules/ipfs-http-client/src/id.js
18: const res = await api.post('id', {
node_modules/ipfs-http-client/src/id.js
13: const res = await api.post('id', {
node_modules/ipfs-client/node_modules/ipfs-http-client/src/id.js
17: const res = await api.post('id', { |
Looks like the line throwing is https://github.com/multiformats/js-multiaddr/blob/aac01444747526149c8bff73e054597b61481007/src/protocols-table.js#L18 we're on multiaddr version
|
attempted a quick fix but was unsuccessful: fc939b7 results in an error 98587cb results in another error:
|
multiformats/js-multiaddr#271 was missing tests for I've added them in multiformats/js-multiaddr#276 but code from multiaddr@11 parses it correctly, so this looks like a problem on ipfs-webui's end (ancient dependencies). Probably the only workaround here is reverse engineering the exception this and creating an ad-hoc patch against multiaddr@8.1.2 that does not throw when certhash is present. |
What's the verdict here? Are we going to do more hacks, or just this as more forcing function to get the dependencies updated... ? |
@BigLep This is going to require dependency updates.. hacks aren't really going to work without those hacks bleeding into older dependency versions that don't require those hacks in the newest versions. It's most likely less work to update webui than try to figure out a working hack |
@SgtPooki : ACK. One more thing dependent on the dependency update project! Let's add it to the issue to put further weight on the criticality of that work. Thanks. |
Just flagging this is a hard blocker for having WebTransport enabled by default in Kubo. |
@marten-seemann per our discussion, see #2033 (comment) We can dive into this deeper at your convenience |
@lidel is this status text not being visible really worth blocking enabling webtransport by default? Would adding a UI notification with link to a tracking issue for this problem(this issue) be sufficient to unblock kubo? I don't feel like blocking the ecosystem because UI rendering a text field is broken is worth the delay. I'm open to being corrected. |
## [2.20.0](v2.19.0...v2.20.0) (2022-11-09) CID `bafybeibjbq3tmmy7wuihhhwvbladjsd3gx3kfjepxzkq6wylik6wc3whzy` --- ### Features * add success notification on "set pinning" action ([#2038](#2038)) ([e410164](e410164)) * track remote pins in progress ([#1919](#1919)) ([d3a6524](d3a6524)) * update to ipfs-geoip v9 ([#2061](#2061)) ([546fb5a](546fb5a)) ### Bug Fixes * /webtransport breaks status page ([#2057](#2057)) ([ea89e7f](ea89e7f)), closes [#2033](#2033) ### Trivial Changes * pull new translations ([#2049](#2049)) ([f6062b2](f6062b2)) * pull new translations ([#2056](#2056)) ([e13ff17](e13ff17)) * pull new translations ([#2059](#2059)) ([0bb5bf3](0bb5bf3))
🎉 This issue has been resolved in version 2.20.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
How to reproduce
"/ip4/0.0.0.0/udp/4002/quic/webtransport"
toAddresses.Swarm
ipfs config Swarm.Transports.Network.WebTransport --json true
See Release Notes for more info: https://github.com/ipfs/kubo/blob/master/docs/changelogs/v0.16.md
Broken state
Suspected cause
Guess:
ipfs.id
output breaks the way we present ADDRESSES on the Status page.I see ipfs-webui in infinite loop trying to read
/api/v0/id
over and over again.New type of addresses is now returned as part of
Addresses
list, values look like this:cc ipfs/kubo#9237
@SgtPooki or @hacdias will you have time to take a look? Ideally we would fix this and ship new ipfs-webui and update Kubo 0.16 ships.
The text was updated successfully, but these errors were encountered: