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

Puppet WXWork Service unreachable #56

Open
huan opened this issue May 9, 2022 · 0 comments
Open

Puppet WXWork Service unreachable #56

huan opened this issue May 9, 2022 · 0 comments

Comments

@huan
Copy link
Member

huan commented May 9, 2022

Interesting find out:

https://api.chatie.io/v0/hosties/puppet_wxwork_xxx

{"host":"127.0.0.1","ip":"x.y.217.105","port":8788}

It seems that the service discovery thinks that the Puppet Service Service IP is not public accessible.

Related source code:

io/src/server/io-manager.ts

Lines 362 to 375 in 17c715f

/**
* Huan(202201): test whether the puppet service server host/port
* can be visited by the internet
*/
const isReachable = await isPortReachable(port, {
host,
timeout: 5 * 1000,
})
const data = {
host: isReachable ? host : '127.0.0.1',
ip: host, // <- `ip` is deprecated, use `host` instead. Will be removed after Dec 31, 2022 Huan(202108)
port,
}

Originally posted by @huan in Chatie/server#96 (comment)

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

1 participant