padlocal / wechaty-puppet-padlocal-demo

65 stars 35 forks source link

有人尝试过制作docker镜像并且运行成功吗? #21

Open tertiozhang opened 1 year ago

tertiozhang commented 1 year ago

我可以在本地运行这个项目,现在想制作docker镜像并且放到云端运行,在运行docker镜像的时候,gRPC出错,导致登录不成功,错误信息如下:

01:11:39 INFO

   Welcome to Wechaty PadLocal puppet!

   - puppet-padlocal version: 1.20.1
   - padlocal-ts-client version: 0.5.3
  ============================================================

01:11:39 INFO [PadLocalDemo] started. 01:11:39 INFO [PuppetPadlocal] start login with type: QrLogin 01:11:40 ERR [Request] [tid:d744e852], padlocal grpc request failed: 1, error: Error: 2 UNKNOWN: [tid:d744e852] wechat request io error 01:11:40 WARN [LongLink] [182.50.10.168:80] close connection on error,IOError: long link init failed: [tid:d744e852] request has been cancelled for reason: SERVER_ERROR: 2 UNKNOWN: [tid:d744e852] wechat request io error 01:11:40 WARN [LongLink] longlink reconnect [1] after delay:1000ms VError: [tid:d744e852] request has been cancelled for reason: SERVER_ERROR: 2 UNKNOWN: [tid:d744e852] wechat request io error at Request._failAllPendingRequest (/app/node_modules/padlocal-client-ts/src/Request.ts:338:15) at ClientDuplexStreamImpl. (/app/node_modules/padlocal-client-ts/src/Request.ts:82:12) at ClientDuplexStreamImpl.emit (node:events:513:28) at ClientDuplexStreamImpl.emit (node:domain:489:12) at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/src/client.ts:692:18) at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/src/client-interceptors.ts:417:48) at /app/node_modules/@grpc/grpc-js/src/resolving-call.ts:111:24 at processTicksAndRejections (node:internal/process/task_queues:77:11)

jackchang1025 commented 9 months ago

我也是,在本地使用 node16 构建的镜像,安装运行报错: image

image

查看 wechaty 文档说要配置阿里云虚拟机,是不是不能在本地运行,感觉文档真的多乱杂,看的真痛苦