Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Three Issues with "exchange-files" example #3397

Closed
daviddias opened this issue Nov 14, 2020 · 6 comments
Closed

Three Issues with "exchange-files" example #3397

daviddias opened this issue Nov 14, 2020 · 6 comments
Assignees
Labels
kind/wontfix-migration-available need/analysis Needs further analysis before proceeding

Comments

@daviddias
Copy link
Member

daviddias commented Nov 14, 2020

  • Version:

Using latest master with the respective example

  • Platform:
» uname -a
Darwin imp16.Home 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64
  • Subsystem:

Examples

Severity:

Medium

Description:

Found 3 issues with the exchange examples

1) The ipfs node returns every address, even if it failed to set up the listener (actual bug in IPFS)

image

✅ FIXED | 2) Typo in how addresses are formatted

image

Why does it attempt to show all addresses as /p2p/? Is there an issue if it displays /ipfs/ addresses?

Update: Fix at #3398

CLOSED | 3) Workspace functionality doesn't seem to work~~

Might have been a problem on my side. It didn't work for a few times, but now I can't repeat the failure.

Steps to reproduce the error:

Start the example with latest. The errors should be visible too

@daviddias daviddias added the need/triage Needs initial labeling and prioritization label Nov 14, 2020
@daviddias daviddias changed the title Three Issues with "exchange-files" example Two Issues with "exchange-files" example Nov 14, 2020
@daviddias daviddias changed the title Two Issues with "exchange-files" example Three Issues with "exchange-files" example Nov 15, 2020
@daviddias
Copy link
Member Author

daviddias commented Nov 15, 2020

🐞 Found an actual 3rd issue. 4) The PubSub messages don't seem to get transferred between peers.

image

Tried multiple combinations (chrome <-> firefox, chrome <-> chrome, firefox <-> firefox) and got not results.

I added some debug statements, the messageHandler never sees the message coming from the other peer.

Can someone run the example on their machine and see if it does work?

@achingbrain achingbrain added need/analysis Needs further analysis before proceeding and removed need/triage Needs initial labeling and prioritization labels Nov 16, 2020
@achingbrain
Copy link
Member

Hmm, weird - the tests pass and it works for me locally between FF and Chrome. The missing /p2p/ thing is a bug, though it's only a display thing, it shouldn't affect the running of the example.

@daviddias
Copy link
Member Author

@achingbrain to distinguish, are you saying that both issue 1) and 4) do not present themselves to you?

@daviddias
Copy link
Member Author

@achingbrain today my experience has degraded, I don't even see peers showing anymore

image

Additionally, I'm seeing the browser node connecting to a bunch of TCP peers, which as we know, it is not possible
image

@achingbrain
Copy link
Member

I am not seeing 4). Does the test in the example pass for you? You can comment out this line to see the browsers do the steps in front of you.

.1) is a bit weird, and the tcp peers thing is definitely not right, I think #3400 is reporting a similar issue, how peer addresses are treated by the address book seems to have changed recently

@SgtPooki SgtPooki self-assigned this May 17, 2023
@SgtPooki SgtPooki moved this to 🥞 Todo in js-ipfs deprecation May 17, 2023
@SgtPooki SgtPooki moved this from 🥞 Todo to 🛑 Blocked in js-ipfs deprecation May 17, 2023
@SgtPooki
Copy link
Member

js-ipfs is being deprecated in favor of Helia. You can #4336 and read the migration guide.

Please feel to reopen with any comments by 2023-06-02. We will do a final pass on reopened issues afterward (see #4336).

This issue is most likely resolved in Helia, please try it out! Note that we're migrating js-ipfs-examples to Helia as well. see ipfs/helia#43 for more info.

@github-project-automation github-project-automation bot moved this from 🛑 Blocked to ✅ Done in js-ipfs deprecation May 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/wontfix-migration-available need/analysis Needs further analysis before proceeding
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants