Skip to content

Puppet WXWork Service unreachable #56

@huan

Description

@huan

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions