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

fix: health check with missing identify dependency #148

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Conversation

2color
Copy link
Contributor

@2color 2color commented Sep 20, 2024

What's in this PR

  • Add identify to fix broken health check

Reason

Health checks fails because identify was missing

Could not dial any of the listening addresses [AggregateError: All promises were rejected] {
  [errors]: [
    UnmetServiceDependenciesError: Service "@libp2p/kad-dht" required capability "@libp2p/identify" but it was not provided by any component, you may need to add additional configuration when creating your node.
        at checkServiceDependencies (file:///app/node_modules/libp2p/dist/src/components.js:101:23)
        at new Libp2p (file:///app/node_modules/libp2p/dist/src/libp2p.js:157:9)
        at createLibp2p (file:///app/node_modules/libp2p/dist/src/index.js:48:18)
        at async tryToDialMaddrOrPeerId (file:///app/dist/src/health-check.js:58:18)
        at async Promise.any (index 0)
        at async tryToDialListeningAddrs (file:///app/dist/src/health-check.js:94:9)
        at async file:///app/dist/src/health-check.js:121:5,
    UnmetServiceDependenciesError: Service "@libp2p/kad-dht" required capability "@libp2p/identify" but it was not provided by any component, you may need to add additional configuration when creating your node.
        at checkServiceDependencies (file:///app/node_modules/libp2p/dist/src/components.js:101:23)
        at new Libp2p (file:///app/node_modules/libp2p/dist/src/libp2p.js:157:9)
        at createLibp2p (file:///app/node_modules/libp2p/dist/src/index.js:48:18)
        at async tryToDialMaddrOrPeerId (file:///app/dist/src/health-check.js:58:18)
        at async Promise.any (index 1)
        at async tryToDialListeningAddrs (file:///app/dist/src/health-check.js:94:9)
        at async file:///app/dist/src/health-check.js:121:5,
    UnmetServiceDependenciesError: Service "@libp2p/kad-dht" required capability "@libp2p/identify" but it was not provided by any component, you may need to add additional configuration when creating your node.
        at checkServiceDependencies (file:///app/node_modules/libp2p/dist/src/components.js:101:23)
        at new Libp2p (file:///app/node_modules/libp2p/dist/src/libp2p.js:157:9)
        at createLibp2p (file:///app/node_modules/libp2p/dist/src/index.js:48:18)
        at async tryToDialMaddrOrPeerId (file:///app/dist/src/health-check.js:58:18)
        at async Promise.any (index 2)
        at async tryToDialListeningAddrs (file:///app/dist/src/health-check.js:94:9)
        at async file:///app/dist/src/health-check.js:121:5,
    UnmetServiceDependenciesError: Service "@libp2p/kad-dht" required capability "@libp2p/identify" but it was not provided by any component, you may need to add additional configuration when creating your node.
        at checkServiceDependencies (file:///app/node_modules/libp2p/dist/src/components.js:101:23)
        at new Libp2p (file:///app/node_modules/libp2p/dist/src/libp2p.js:157:9)
        at createLibp2p (file:///app/node_modules/libp2p/dist/src/index.js:48:18)
        at async tryToDialMaddrOrPeerId (file:///app/dist/src/health-check.js:58:18)
        at async Promise.any (index 3)
        at async tryToDialListeningAddrs (file:///app/dist/src/health-check.js:94:9)
        at async file:///app/dist/src/health-check.js:121:5,
    UnmetServiceDependenciesError: Service "@libp2p/kad-dht" required capability "@libp2p/identify" but it was not provided by any component, you may need to add additional configuration when creating your node.
        at checkServiceDependencies (file:///app/node_modules/libp2p/dist/src/components.js:101:23)
        at new Libp2p (file:///app/node_modules/libp2p/dist/src/libp2p.js:157:9)
        at createLibp2p (file:///app/node_modules/libp2p/dist/src/index.js:48:18)
        at async tryToDialMaddrOrPeerId (file:///app/dist/src/health-check.js:58:18)
        at async Promise.any (index 4)
        at async tryToDialListeningAddrs (file:///app/dist/src/health-check.js:94:9)
        at async file:///app/dist/src/health-check.js:121:5
  ]
}

@2color 2color changed the title feat: add required identify dependency fix: add required identify dependency Sep 20, 2024
@2color 2color changed the title fix: add required identify dependency fix: health check with identify dependency Sep 20, 2024
@2color 2color changed the title fix: health check with identify dependency fix: health check with missing identify dependency Sep 20, 2024
@2color 2color merged commit 5cecc40 into main Sep 20, 2024
24 checks passed
@2color 2color deleted the fix-helath-check branch September 20, 2024 12:23
github-actions bot pushed a commit that referenced this pull request Sep 20, 2024
## [1.4.1](v1.4.0...v1.4.1) (2024-09-20)

### Bug Fixes

* add required identify dependency ([#148](#148)) ([5cecc40](5cecc40))
Copy link

🎉 This PR is included in version 1.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant