h1orz opened a new issue #243:
URL: https://github.com/apache/dubbo-js/issues/243
Log:
`[2021-06-22T14:54:31.886] [INFO] default - onTrace {
time: '2021-06-22T06:54:31.886Z',
pid: 20404,
host: '192.168.146.1',
type: 'INFO',
msg: 'dubbo:bootstrap version => 3.0.0-rc6'
}
[2021-06-22T14:54:31.923] [INFO] default - dubbo was ready...
[2021-06-22T14:54:31.924] [INFO] default - onTrace {
time: '2021-06-22T06:54:31.923Z',
pid: 20404,
host: '192.168.146.1',
type: 'ERR',
msg: ScheduleError: Can not be find any agents
at Object.Scheduler._handleZkClientOnData [as onData]
(D:\Git\img\node_modules\apache-dubbo-js\es7\scheduler.js:69:29)
at ZkRegistry._init
(D:\Git\img\node_modules\apache-dubbo-js\es7\registry\zookeeper.js:81:30)
at Client.<anonymous>
(D:\Git\img\node_modules\apache-dubbo-js\es7\registry\zookeeper.js:113:17)
at Object.onceWrapper (events.js:481:28)
at Client.emit (events.js:375:28)
at Client.defaultStateListener
(D:\Git\img\node_modules\node-zookeeper-client\index.js:55:14)
at Client.emit (events.js:375:28)
at Client.onConnectionManagerState
(D:\Git\img\node_modules\node-zookeeper-client\index.js:262:14)
at ConnectionManager.emit (events.js:375:28)
at ConnectionManager.setState
(D:\Git\img\node_modules\node-zookeeper-client\lib\ConnectionManager.js:168:14)
}`
Code:
`
const interfaceName =
'com.xxx.authcenter.facade.service.user.UserServiceFacade'
const interfaceVersion = '1.0.0'
const dubbo = new Dubbo({
application: {
name: 'node'
},
register: '172.22.7.169:2181',
zkRoot: '/dubbo',
dubboVersion: '2.7.6',
dubboSetting: setting
.match(interfaceName, {
version: interfaceVersion
})
});
(async () => {
await dubbo.ready()
console.log('dubbo was ready...')
})()
dubbo.subscribe({
onTrace(msg) {
console.log('onTrace', msg)
}
})
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]