wechaty / puppet-wechat

Wechaty Puppet Provider for WeChat
https://www.npmjs.com/package/wechaty-puppet-wechat
Apache License 2.0
405 stars 67 forks source link

Can not login with UOS patch #192

Open xiaoxintang opened 2 years ago

xiaoxintang commented 2 years ago
10:02:16 INFO StarterBot onScan: Scanned(3)
10:02:17 SILL PuppetWeChatEvent onLog(checkScan() code:201 url:https://login.weixin.qq.com/qrcode/gaGsViKqww== scanCode:201)
10:02:18 SILL PuppetWeChatEvent onLog(checkScan() code:201 url:https://login.weixin.qq.com/qrcode/gaGsViKqww== scanCode:201)
10:02:19 SILL PuppetWeChatEvent onLog(checkScan() code:201 url:https://login.weixin.qq.com/qrcode/gaGsViKqww== scanCode:201)
10:02:20 SILL PuppetWeChatEvent onLog(checkScan() code:201 url:https://login.weixin.qq.com/qrcode/gaGsViKqww== scanCode:201)
10:02:21 WARN PuppetWeChatBridge onDialog() page.on(dialog) type:type() {
        return this._type;
    } message:登录失败。
10:02:21 ERR Config ###########################
10:02:21 ERR Config Wechaty unhandledRejection: GError: type() {
        return this._type;
    }(登录失败。)
    at Function.from (file:///node_modules/.pnpm/registry.npmmirror.com+gerror@1.0.16/node_modules/gerror/src/gerror/gerror.ts:69:17)
    at Bridge.onDialog (file:///node_modules/.pnpm/registry.npmmirror.com+wechaty-puppet-wechat@1.11.8_d4744562d843ac589ee1af4a4661bf5c/node_modules/wechaty-puppet-wechat/src/bridge.ts:189:31)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) [object Promise]
10:02:21 ERR Config ###########################
10:02:21 ERR Config process.on(unhandledRejection) promise.catch(type() {
        return this._type;
    }(登录失败。))
Config GError: type() {
        return this._type;
    }(登录失败。)
    at Function.from (file:///node_modules/.pnpm/registry.npmmirror.com+gerror@1.0.16/node_modules/gerror/src/gerror/gerror.ts:69:17)
    at Bridge.onDialog (file:///node_modules/.pnpm/registry.npmmirror.com+wechaty-puppet-wechat@1.11.8_d4744562d843ac589ee1af4a4661bf5c/node_modules/wechaty-puppet-wechat/src/bridge.ts:189:31)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: 2,
  details: 'GError: type() {\n' +
    '        return this._type;\n' +
    '    }(登录失败。)\n' +
    '    at Function.from (file:///node_modules/.pnpm/registry.npmmirror.com+gerror@1.0.16/node_modules/gerror/src/gerror/gerror.ts:69:17)\n' +
    '    at Bridge.onDialog (file:///node_modules/.pnpm/registry.npmmirror.com+wechaty-puppet-wechat@1.11.8_d4744562d843ac589ee1af4a4661bf5c/node_modules/wechaty-puppet-wechat/src/bridge.ts:189:31)\n' +
    '    at processTicksAndRejections (node:internal/process/task_queues:96:5)'
}
xiaoxintang commented 2 years ago

the problem happen just today,without depends change

wuwu955 commented 2 years ago

the problem happen just today,without depends change

I have the same problem

zhihualipolestar commented 2 years ago

today I get the error too.

starzou commented 2 years ago

Same problem, I guess the WeChat login API has changed.

phateffect commented 2 years ago

Same problem, I guess the WeChat login API has changed.

Here's the new 2.1.1 version of wechat-uos ref: https://aur.archlinux.org/packages/wechat-uos#comment-844095

starzou commented 2 years ago

Same problem, I guess the WeChat login API has changed.

Here's the new 2.1.1 version of wechat-uos ref: https://aur.archlinux.org/packages/wechat-uos#comment-844095

Still failed to login.

wanguanyun commented 2 years ago

the same problem hope someone can fix it

yuanquan521 commented 2 years ago

还是不行啊, web登录不上,padlocal也登录不上

SuMaiKaDe commented 2 years ago

还有希望修复吗

woostundy commented 2 years ago

持续关注

156874 commented 2 years ago

持续关注

lyxverycool commented 2 years ago

持续关注

LIUHanyang96 commented 2 years ago

持续关注

azbh111 commented 2 years ago

持续关注

huan commented 2 years ago

Has there anyone tried to change the WECHATY_PUPPET_WECHAT_TOKEN to a customer new one, to see if it helps?

See

vanplus commented 2 years ago

Has there anyone tried to change the WECHATY_PUPPET_WECHAT_TOKEN to a customer new one, to see if it helps?

See

* [Allow users to use their self-generated extspam #142](https://github.com/wechaty/puppet-wechat/pull/142)

通过 BlueSky-07/wechat-token 获取 extspam

My code:

const extspam = GET_FROM('https://github.com/BlueSky-07/wechat-token')
process.env.WECHATY_PUPPET_WECHAT_TOKEN = extspam

WechatyBuilder.build({
    name: 'wechaty-puppet-wechat',
    puppet: 'wechaty-puppet-wechat',
    puppetOptions: {
      token: process.env.WECHATY_PUPPET_WECHAT_TOKEN,
    }
})

Result:

WARN PuppetWeChatBridge onDialog() page.on(dialog) type:type() {
        return this._type;
} message:登录失败。

Versions:

"wechaty": "^1.10.4",
"wechaty-puppet-wechat": "^1.10.5"
JoffreyN commented 2 years ago

用不了了?有希望吗?

vanplus commented 2 years ago

https://web.wechat.com/ 可以直接登录

azbh111 commented 2 years ago

https://web.wechat.com/ 可以直接登录

不行,登录不了

JoffreyN commented 2 years ago

对于不能登录网页版的微信 是无解了吗?

azbh111 commented 2 years ago

自建puppet-service,还需要购买token吗? 如果需要购买,那么为什么要自建呢?

vanplus commented 2 years ago

https://web.wechat.com/ 可以直接登录

不行,登录不了

我的号能登录,就是自定义 extspam 不行。说不定你的号就行呢。

通过 BlueSky-07/wechat-token 获取 extspam

My code:

const extspam = GET_FROM('https://github.com/BlueSky-07/wechat-token')
process.env.WECHATY_PUPPET_WECHAT_TOKEN = extspam

WechatyBuilder.build({
    name: 'wechaty-puppet-wechat',
    puppet: 'wechaty-puppet-wechat',
    puppetOptions: {
      token: process.env.WECHATY_PUPPET_WECHAT_TOKEN,
    }
})
azbh111 commented 2 years ago

https://web.wechat.com/ 可以直接登录

不行,登录不了

我的号能登录,就是自定义 extspam 不行。说不定你的号就行呢。

通过 BlueSky-07/wechat-token 获取 extspam My code:

const extspam = GET_FROM('https://github.com/BlueSky-07/wechat-token')
process.env.WECHATY_PUPPET_WECHAT_TOKEN = extspam

WechatyBuilder.build({
    name: 'wechaty-puppet-wechat',
    puppet: 'wechaty-puppet-wechat',
    puppetOptions: {
      token: process.env.WECHATY_PUPPET_WECHAT_TOKEN,
    }
})

哎,这个方法我还是不行,应该和账号有关系

SuMaiKaDe commented 2 years ago

https://web.wechat.com/ 可以直接登录

不行,登录不了

我的号能登录,就是自定义 extspam 不行。说不定你的号就行呢。

通过 BlueSky-07/wechat-token 获取 extspam My code:

const extspam = GET_FROM('https://github.com/BlueSky-07/wechat-token')
process.env.WECHATY_PUPPET_WECHAT_TOKEN = extspam

WechatyBuilder.build({
    name: 'wechaty-puppet-wechat',
    puppet: 'wechaty-puppet-wechat',
    puppetOptions: {
      token: process.env.WECHATY_PUPPET_WECHAT_TOKEN,
    }
})

哎,这个方法我还是不行,应该和账号有关系

应该和账号有关系。 前段时间网页文件传输刚出来,登录一次网页文件传输助手,就可以登录网页版微信。 后悔当时觉得可以用uos就没登录。 结果转眼就封了uos,web也登不上。

hxianseng commented 2 years ago

https://web.wechat.com/ 可以直接登录

不行,登录不了

我的号能登录,就是自定义 extspam 不行。说不定你的号就行呢。

通过 BlueSky-07/wechat-token 获取 extspam My code:

const extspam = GET_FROM('https://github.com/BlueSky-07/wechat-token')
process.env.WECHATY_PUPPET_WECHAT_TOKEN = extspam

WechatyBuilder.build({
    name: 'wechaty-puppet-wechat',
    puppet: 'wechaty-puppet-wechat',
    puppetOptions: {
      token: process.env.WECHATY_PUPPET_WECHAT_TOKEN,
    }
})

哎,这个方法我还是不行,应该和账号有关系

应该和账号有关系。 前段时间网页文件传输刚出来,登录一次网页文件传输助手,就可以登录网页版微信。 后悔当时觉得可以用uos就没登录。 结果转眼就封了uos,web也登不上。 我微信有web权限,能用吗?

coronin commented 2 years ago

关注

linrol commented 2 years ago

持续关注

vanplus commented 2 years ago

既然新版统信 UOS 和银河麒麟微信仍然基于 electron, 那么我们可以研究下新版 API 的变化

腾讯出了 Linux 版微信~ - V2EX

SouthTass commented 2 years ago

持续关注,希望能继续使用

SuMaiKaDe commented 2 years ago

既然新版统信 UOS 和银河麒麟微信仍然基于 electron, 那么我们可以研究下新版 API 的变化

腾讯出了 Linux 版微信~ - V2EX

这次也是electron封装的?

xiaogaozi commented 2 years ago

来自其它社区的相关讨论:https://github.com/ehForwarderBot/efb-wechat-slave/issues/126

zicheng-jscoder commented 2 years ago

每天来一遍

dazhi1011 commented 2 years ago

持续关注

fulln commented 2 years ago

用docker 登陆后提示{"data":"Unable to log in"})

bzever commented 2 years ago

持续关注

LIUHanyang96 commented 2 years ago

有什么进展吗

156874 commented 2 years ago

好像还没好

PonyC commented 2 years ago

持续关注

huan commented 2 years ago

UOS patch does not work after Jan 1, 2022, so we have a PR to disable it by default:

So that we can use the origin web protocol for very limited accounts.

You can still enable the UOS patch by set WECHATY_PUPPET_WECHAT_UOS=true, learn more from the above issue and related PR

smartnikocj commented 2 years ago

是不是还没有解决呀?

aote777 commented 2 years ago

等待中

lx0758 commented 2 years ago

挖坟

JS-banana commented 2 years ago

mark

huan commented 2 years ago

Update: recommend using Wechaty Puppet XP

It seems that the UOS patch has no solution to be enabled again. (If anyone has a solution, please submit a PR)

So for users who need a free Wechaty Puppet Provider (WPP), we are suggesting that you can try the Wechaty Puppet XP which is a free WPP based on the Windows WeChat Client.

I will lock this thread for now. Please file a new issue if there's any need.

leochen-g commented 2 years ago

good news, uos great again

Please follow this pr #206

leochen-g commented 2 years ago

现在可以安装最新版进行uos桌面版体验了 npm install wechaty-puppet-wechat@latest --save,注意查看版本是1.18.4 ,如果安装失败,记得把npm源切换为https://registry.npmjs.org/,其他源可能还没同步。同时代码里需要开启uos选项,默认是关闭的,参考以下配置:

const bot = WechatyBuilder.build({
    name: 'puppet-wechat',
    puppetOptions: {
      uos: true  // 开启uos协议
    },
    puppet: 'wechaty-puppet-wechat',
})