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

ERR PuppetWeChatBridge onLoad() exception: Error: execute proxyWechaty(init) error: 503, init() without a ready angular env #228

Open
pickmonster opened this issue Oct 24, 2023 · 2 comments

Comments

@pickmonster
Copy link

pickmonster commented Oct 24, 2023

02:17:53 INFO StarterBot Starter Bot Started.
02:17:54 INFO StarterBot onScan: Waiting(2) - https://wechaty.js.org/XXXXXXXXXX
02:18:08 INFO StarterBot onScan: Scanned(3)
02:18:17 ERR PuppetWeChatBridge onLoad() exception: Error: execute proxyWechaty(init) error: 503, init() without a ready angular env
D:\develop\wechaty\big-king-wechaty\node_modules\wechaty-puppet-wechat\src\bridge.ts:356
throw new Error('execute proxyWechaty(init) error: ' + retObj?.code + ', ' + retObj?.message)
^
GError: execute proxyWechaty(init) error: 503, init() without a ready angular env
at Bridge.inject (D:\develop\wechaty\big-king-wechaty\node_modules\wechaty-puppet-wechat\src\bridge.ts:356:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Bridge.onLoad (D:\develop\wechaty\big-king-wechaty\node_modules\wechaty-puppet-wechat\src\bridge.ts:214:7) {
code: 2,
details: 'Error: execute proxyWechaty(init) error: 503, init() without a ready angular env\n' +
' at Bridge.inject (D:\develop\wechaty\big-king-wechaty\node_modules\wechaty-puppet-wechat\src\bridge.ts:356:15)\n' +
' at processTicksAndRejections (node:internal/process/task_queues:96:5)\n' +
' at async Bridge.onLoad (D:\develop\wechaty\big-king-wechaty\node_modules\wechaty-puppet-wechat\src\bridge.ts:214:7)'
}

It can be started normally, but an error is reported after scanning the WeChat code to log in.

This is package.json file

{
  "name": "wechat-bot",
  "version": "1.0.0",
  "description": "",
  "main": "main.ts",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "cross-env WECHATY_LOG=verbose WECHATY_PUPPET=wechaty-puppet-wechat npx ts-node main.ts"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "axios": "^1.5.1",
    "dotenv": "^16.3.1",
    "qrcode-terminal": "^0.12.0",
    "wechaty": "^1.20.2",
    "wechaty-puppet-wechat4u": "^1.14.6"
  },
  "devDependencies": {
    "@types/node": "^20.8.7",
    "@types/qrcode-terminal": "^0.12.1",
    "cross-env": "^7.0.3",
    "ts-node": "^10.9.1",
    "typescript": "^5.2.2"
  },
  "git": {
    "scripts": {
      "pre-push": "npx git-scripts-pre-push"
    }
  },
  "engines": {
    "node": ">= 16",
    "npm": ">=7"
  }
}
@yahao333
Copy link

I have the same question

@shiyeling
Copy link

我也是一样的问题。从这个https://github.com/wechaty/wechaty/issues/603看起来,好像老早以前就有的问题,不确定我欸什么UOS没有解决

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

3 participants