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

dns4 dialling fails #260

Closed
achingbrain opened this issue Oct 12, 2018 · 1 comment
Closed

dns4 dialling fails #260

achingbrain opened this issue Oct 12, 2018 · 1 comment

Comments

@achingbrain
Copy link
Member

Just wondering if I'm doing something wrong:

await ipfs.api.swarm.connect('/dns4/localhost/tcp/40020/ipfs/QmUCxqJEyKZ2dC8fLL6vKXZTW7RihxgfnS8NTqNHxsaJuw')

Results in:

Error: Circuit not enabled and all transports failed to dial peer QmUCxqJEyKZ2dC8fLL6vKXZTW7RihxgfnS8NTqNHxsaJuw!
    at nextTransport (/path/to/project/node_modules/libp2p-switch/src/dial.js:365:27)
    at switch.transport.dial (/path/to/project/node_modules/libp2p-switch/src/dial.js:382:18)
    at dialer.dialMany (/path/to/project/node_modules/libp2p-switch/src/transport.js:69:16)
    at f (/path/to/project/node_modules/once/once.js:25:25)
    at map (/path/to/project/node_modules/libp2p-switch/src/limit-dialer/index.js:61:14)
    at /path/to/project/node_modules/async/internal/map.js:32:9
    at /path/to/project/node_modules/async/internal/once.js:12:16
    at iteratorCallback (/path/to/project/node_modules/async/eachOf.js:60:13)
    at /path/to/project/node_modules/async/internal/onlyOnce.js:12:16
    at Object.callback (/path/to/project/node_modules/async/internal/map.js:29:13)
    at /path/to/project/node_modules/async/internal/queue.js:101:31
    at /path/to/project/node_modules/async/internal/onlyOnce.js:12:16
    at _dialWithTimeout (/path/to/project/node_modules/libp2p-switch/src/limit-dialer/queue.js:44:16)
    at /path/to/project/node_modules/async/timeout.js:79:26
    at Socket.transport.dial (/path/to/project/node_modules/libp2p-switch/src/limit-dialer/queue.js:81:18)
    at Socket.f (/path/to/project/node_modules/once/once.js:25:25)
    at Object.onceWrapper (events.js:273:13)
    at Socket.emit (events.js:187:15)
    at emitErrorNT (internal/streams/destroy.js:82:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)

This is with a js-ipfs daemon - running the same thing with a go-ipfs daemon works as expected.

@jacobheun
Copy link
Contributor

There was an update to mafmt and libp2p-tcp recently to add support for tcp over dns. If you update to libp2p-tcp@0.13.0 that should resolve the issue. I'll close this for now, but feel free to open if that doesn't solve the problem.

maschad pushed a commit to maschad/js-libp2p that referenced this issue Jun 21, 2023
Bumps [it-all](https://github.com/achingbrain/it) from 2.0.1 to 3.0.1.
- [Release notes](https://github.com/achingbrain/it/releases)
- [Commits](achingbrain/it@it-all-v2.0.1...it-all-v3.0.1)

---
updated-dependencies:
- dependency-name: it-all
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
maschad pushed a commit to maschad/js-libp2p that referenced this issue Jun 21, 2023
## [7.1.6](libp2p/js-libp2p-mplex@v7.1.5...v7.1.6) (2023-04-13)

### Dependencies

* **dev:** bump it-all from 2.0.1 to 3.0.1 ([libp2p#260](libp2p/js-libp2p-mplex#260)) ([c63ed58](libp2p/js-libp2p-mplex@c63ed58))
* **dev:** bump it-foreach from 1.0.1 to 2.0.2 ([libp2p#265](libp2p/js-libp2p-mplex#265)) ([76d27a4](libp2p/js-libp2p-mplex@76d27a4))
* **dev:** bump it-pipe from 2.0.5 to 3.0.1 ([libp2p#268](libp2p/js-libp2p-mplex#268)) ([bd37717](libp2p/js-libp2p-mplex@bd37717))
maschad pushed a commit to maschad/js-libp2p that referenced this issue Jun 21, 2023
Bumps [it-all](https://github.com/achingbrain/it) from 2.0.1 to 3.0.1.
- [Release notes](https://github.com/achingbrain/it/releases)
- [Commits](achingbrain/it@it-all-v2.0.1...it-all-v3.0.1)

---
updated-dependencies:
- dependency-name: it-all
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
maschad pushed a commit to maschad/js-libp2p that referenced this issue Jun 21, 2023
## [6.2.1](libp2p/js-libp2p-tcp@v6.2.0...v6.2.1) (2023-04-14)

### Dependencies

* **dev:** bump it-all from 2.0.1 to 3.0.1 ([libp2p#260](libp2p/js-libp2p-tcp#260)) ([c0f3ec2](libp2p/js-libp2p-tcp@c0f3ec2))
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

No branches or pull requests

2 participants