Skip to content

WXWork: 使用测试token失败,无法连接 #697

Open
@mumudm

Description

@mumudm

Please make sure you have read the Wechaty Puppet Service: WXWork from Wechaty Official Website before you continue writting this issue.

Question

测试无法正常启动, token 已替换

17:59:41 VERB GrpcManager constructor() endpoint: "wechaty://token-service-discovery-test.juzibot.com/puppet_workpro_xxxxxx"
17:59:41 VERB GrpcManager constructor() disableTls: "true"
17:59:41 VERB GrpcManager constructor() serverName(SNI): "puppet_workpro"
17:59:41 VERB PuppetService start() instanciating GrpcManager ... done
17:59:41 VERB PuppetService start() setting up bridge grpc event stream ...
17:59:41 VERB PuppetService bridgeGrpcEventStream(client)
17:59:41 VERB PuppetService start() setting up bridge grpc event stream ... done
17:59:41 VERB PuppetService start() starting grpc manager...
17:59:41 VERB GrpcManager start()
17:59:41 VERB GrpcManager start() initializing client ...
17:59:41 VERB GrpcManager initClient()
17:59:41 WARN GrpcManager initClient() TLS: disabled (INSECURE)
17:59:41 VERB GrpcManager initClient() ... done
17:59:41 VERB GrpcManager start() initializing client ... done
17:59:41 VERB GrpcManager start() starting stream ...
17:59:41 VERB GrpcManager startStream()
17:59:41 VERB GrpcManager startStream() grpc -> event() ...
17:59:41 VERB GrpcManager startStream() grpc -> event() ... done
17:59:41 VERB GrpcManager startStream() grpc -> event peeking data or timeout ...
17:59:41 ERR Config ###########################
17:59:41 ERR Config Wechaty uncaughtException: TypeError: Cannot use 'in' operator to search for 'port' in undefined
    at isTcpSubchannelAddress (/root/wechaty/node_modules/@grpc/grpc-js/build/src/subchannel-address.js:29:19)
    at subchannelAddressToString (/root/wechaty/node_modules/@grpc/grpc-js/build/src/subchannel-address.js:48:9)
    at /root/wechaty/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js:413:120
    at Array.map (<anonymous>)
    at PickFirstLoadBalancer.updateAddressList (/root/wechaty/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js:413:54)
    at ChildLoadBalancerHandler.updateAddressList (/root/wechaty/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js:114:23)
    at onSuccessfulResolution (/root/wechaty/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js:228:40)
    at process.processTicksAndRejections (node:internal/process/task_queues:85:22) uncaughtException
17:59:41 ERR Config ###########################

ping token-service-discovery-test.juzibot.com不通,但是 curl 可以访问通过,求指导哪里有问题

Metadata

Metadata

Assignees

Labels

wxworkWechaty Puppet WXWork

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions