Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker部署,扫码登录后报503错误 #2454

Closed
isbiong100 opened this issue Nov 8, 2022 · 11 comments
Closed

docker部署,扫码登录后报503错误 #2454

isbiong100 opened this issue Nov 8, 2022 · 11 comments

Comments

@isbiong100
Copy link

WECHATY Environment Variables: 5
WECHATY_TOKEN=“MY_TOCKEN”
WECHATY_DOCKER=1
WECHATY_PUPPET_SERVER_PORT=8080
WECHATY_LOG=verbose
WECHATY_PUPPET=wechaty-puppet-wechat

tarting Docker Container for Wechaty v1.20.2 with Node.js v16.15.0

报错日志:
09:00:33 INFO IoClient [4] https://login.weixin.qq.com/l/wZ2a6cNrjA==
Online QR Code Image: https://wechaty.js.org/qrcode/https%3A%2F%2Flogin.weixin.qq.com%2Fl%2FwZ2a6cNrjA%3D%3D
09:00:34 VERB PuppetWeChatBridge onLoad() page.url=https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=AS8SYJEE1ut7ltDHUltpn81k@qrticket_0&uuid=wZ2a6cNrjA==&lang=en_US&scan=1667898024
09:00:34 VERB PuppetWeChatBridge readyAngular()
09:00:34 VERB PuppetWeChatBridge inject()
09:00:34 VERB PuppetWeChatBridge inject() exception: execute proxyWechaty(init) error: 503, init() without a ready angular env. stack: Error: execute proxyWechaty(init) error: 503, init() without a ready angular env
at Bridge.inject (file:///wechaty/node_modules/wechaty-puppet-wechat/src/bridge.ts:363:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Bridge.onLoad (file:///wechaty/node_modules/wechaty-puppet-wechat/src/bridge.ts:214:7)
09:00:34 ERR PuppetWeChatBridge onLoad() exception: Error: execute proxyWechaty(init) error: 503, init() without a ready angular env

端口是打开的,docker是没问题的,请问是怎么回事?

@ericcug
Copy link

ericcug commented Dec 13, 2022

你需要自己编译更新使用新版的wechaty-puppet-wechat,官方docker未包含支持uos的puppet。

@isbiong100
Copy link
Author

你需要自己编译更新使用新版的wechaty-puppet-wechat,官方docker未包含支持uos的puppet。

请问有具体的方法吗?(虚心求教)

@huan
Copy link
Member

huan commented Dec 13, 2022

A PR request to upgrade the UOS support is welcome!

@ericcug
Copy link

ericcug commented Dec 14, 2022

A PR request to upgrade the UOS support is welcome!

AFAIK, puppet-wechat had support UOS since 1.18.4 with PuppetOptions uos: true .
Should wechaty team build a new official image?

I try to build a custom image and got this error:

> wechaty@1.20.2 lint:ts
> tsc --isolatedModules --noEmit

src/user-mixins/poolify.ts(43,46): error TS2344: Type 'T' does not satisfy the constraint '{}'.
src/user-mixins/validation.ts(13,61): error TS2344: Type 'T' does not satisfy the constraint '{}'.
ERROR: "lint:ts" exited with 2.

Maybe you can take a look at this.

And I receive a security notice that I use a third part client or plug-in, unlock by promise not to use plug-in.
Other users should be aware that use at your own risk.
I am not use puppet-wechat uos few days, so this account security restrictions may not be detected in realtime.

@ericcug
Copy link

ericcug commented Dec 14, 2022

你需要自己编译更新使用新版的wechaty-puppet-wechat,官方docker未包含支持uos的puppet。

请问有具体的方法吗?(虚心求教)

建议你搜索一下docker build 教程,clone仓库本地自己编译镜像。

@Shaun-Fong
Copy link

Shaun-Fong commented Jul 1, 2023

Latest Wechaty docker image, 2023.7.1

@Shaun-Fong
Copy link

Shaun-Fong commented Jul 1, 2023

@huan You may want to check this Fix Build & Publish In Workflow

@huan
Copy link
Member

huan commented Jul 1, 2023

Can you explain what you have done? Thanks.

@Shaun-Fong
Copy link

Shaun-Fong commented Jul 2, 2023

Can you explain what you have done? Thanks.

I found that the publish step of the workflow did not execute correctly(network Socket timeout ), I used a publish action from the marketplace instead.

@huan
Copy link
Member

huan commented Jul 2, 2023

Could you please help us to send a PR to fix the main repo?

Thanks!

Copy link

dosubot bot commented Nov 20, 2023

Hi, @isbiong100! I'm Dosu, and I'm helping the wechaty team manage their backlog. I wanted to let you know that we are marking this issue as stale.

From what I understand, you encountered a 503 error after scanning a QR code for login during Docker deployment. You provided the necessary environment variables and logs, but you're unsure why the error is occurring despite the open port and functioning Docker. In the comments, there was a suggestion to update the wechaty-puppet-wechat version and a discussion about building a new official image. There is also a link to a fix for the build and publish workflow and a request for you to send a PR to fix the main repository.

If this issue is still relevant to the latest version of the wechaty repository, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you for your understanding and contribution to the wechaty community!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Nov 20, 2023
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2023
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants