wechaty / puppet-padlocal

Puppet PadLocal is a Pad Protocol for WeChat
https://wechaty.js.org/docs/puppet-providers/padlocal
Apache License 2.0
642 stars 88 forks source link

can't use gateway #117

Closed osindex closed 2 years ago

osindex commented 2 years ago

wechaty/wechaty:1.10

05:44:10 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"Wechaty Puppet gRPC stream connect successfully"})
05:44:10 VERB PuppetServiceImpl start()
05:44:10 ERR PuppetServiceImpl grpcError() start() rejection: The "listener" argument must be of type function. Received undefined
TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received undefined
    at checkListener (node:events:128:3)
    at _addListener (node:events:423:3)
    at StateSwitch.addListener (node:events:487:10)
    at PuppetPadlocal._startClient (/wechaty/node_modules/wechaty-puppet-padlocal/src/puppet-padlocal.ts:145:20)
    at PuppetPadlocal.start (/wechaty/node_modules/wechaty-puppet-padlocal/src/puppet-padlocal.ts:141:16)
    at start (file:///wechaty/node_modules/wechaty-puppet-service/src/server/puppet-implementation.ts:1332:18)
    at Object.start (file:///wechaty/node_modules/wechaty-puppet-service/src/auth/auth-impl-token.ts:49:18)
    at handleUnary (/wechaty/node_modules/@grpc/grpc-js/src/server.ts:896:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
osindex commented 2 years ago

docker-compose.yml

version: "3.2"
services:
        wechaty_puppet_service_token_gateway:
                image: "wechaty/wechaty:1.10"
                env_file:
                 - env.gateway
                ports:
                 - "8788:8788"
                restart: always
                tty: true

env.gateway

WECHATY_LOG=verbose
WECHATY_PUPPET=wechaty-puppet-padlocal
WECHATY_PUPPET_SERVER_PORT=8788
WECHATY_PUPPET_PADLOCAL_TOKEN=puppet_padlocal_**
WECHATY_TOKEN=puppet_padlocal_**
WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_SERVER=true
huan commented 2 years ago

According to the report from @demonkhh 低版本 docker 可以使用(目前测试到可以使用的docker版本为 0.67 )

You can try to downgrade the version of the docker image and try again.

wwys-top commented 3 months ago

@huan @padlocal 使用新的token登录,提示错误,你的应用版本过低,请升级至最新版本后再登录。点击“确定”后将跳转至最新下载页面