Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Things that should work, but we're not sure #26

Open
Arqu opened this issue Dec 22, 2022 · 3 comments
Open

Things that should work, but we're not sure #26

Arqu opened this issue Dec 22, 2022 · 3 comments

Comments

@Arqu
Copy link
Collaborator

Arqu commented Dec 22, 2022

This is a summary of things @ppodolsky encountered, which in theory should work but seems to exhibit odd behavior and we should check/investigate and write tests for.

  • iroh <> kubo swarm connect: iroh sees kubo as a peer, but not the other way around.
  • Errors happened between iroh@main(7a11aa8) and kubo 0.17. On kubo 0.18 errors didn't show, but still doesn't count iroh as a peer.
  • Error msg: [/ip4/127.0.0.1/tcp/4401] failed to negotiate security protocol: message did not have trailing newline
  • test case: run kubo & iroh and do a manual ipfs swarm connect to iroh. ipfs swarm list should show the iroh node there.
@Arqu Arqu changed the title Things that should work, but were not sure Things that should work, but we're not sure Dec 22, 2022
@ppodolsky
Copy link
Contributor

More details - it is reproducing on kubo 0.18 too. Approximately 1 out of 10 attemts to connect from kubo to iroh are successful, others are not

@dignifiedquire
Copy link
Contributor

@mxinden any thoughts on the connection error?

@mxinden
Copy link

mxinden commented Dec 22, 2022

Error msg: [/ip4/127.0.0.1/tcp/4401] failed to negotiate security protocol: message did not have trailing newline

Code emitting the error message:

https://github.com/multiformats/go-multistream/blob/c11bb0ea980e8cd6c1f7dc14465e435671d296c5/multistream.go#L300-L302

Is the Rust multistream-select implementation missing to send a newline?

Can you post more logs? Do you know the version pair (Kubo and Iroh) that started throwing this error?

@dignifiedquire dignifiedquire transferred this issue from n0-computer/iroh Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants