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

Can not login with UOS patch #192

Open
xiaoxintang opened this issue Dec 31, 2021 · 46 comments
Open

Can not login with UOS patch #192

xiaoxintang opened this issue Dec 31, 2021 · 46 comments
Labels
question Further information is requested

Comments

@xiaoxintang
Copy link

xiaoxintang commented Dec 31, 2021

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/[email protected]/node_modules/gerror/src/gerror/gerror.ts:69:17)
    at Bridge.onDialog (file:///node_modules/.pnpm/[email protected]_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/[email protected]/node_modules/gerror/src/gerror/gerror.ts:69:17)
    at Bridge.onDialog (file:///node_modules/.pnpm/[email protected]_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/[email protected]/node_modules/gerror/src/gerror/gerror.ts:69:17)\n' +
    '    at Bridge.onDialog (file:///node_modules/.pnpm/[email protected]_d4744562d843ac589ee1af4a4661bf5c/node_modules/wechaty-puppet-wechat/src/bridge.ts:189:31)\n' +
    '    at processTicksAndRejections (node:internal/process/task_queues:96:5)'
}
@xiaoxintang
Copy link
Author

the problem happen just today,without depends change

@wuwu955
Copy link

wuwu955 commented Dec 31, 2021

the problem happen just today,without depends change

I have the same problem

@zhihualipolestar
Copy link

today I get the error too.

@starzou
Copy link

starzou commented Dec 31, 2021

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

@phateffect
Copy link

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
Copy link

starzou commented Dec 31, 2021

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
Copy link

the same problem
hope someone can fix it

@yuanquan521
Copy link

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

@SuMaiKaDe
Copy link

还有希望修复吗

@woostundy
Copy link

持续关注

4 similar comments
@156874
Copy link

156874 commented Jan 4, 2022

持续关注

@lyxverycool
Copy link

持续关注

@LIUHanyang96
Copy link

持续关注

@azbh111
Copy link

azbh111 commented Jan 4, 2022

持续关注

@huan
Copy link
Member

huan commented Jan 4, 2022

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

See

@vanplus
Copy link

vanplus commented Jan 4, 2022

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
Copy link

JoffreyN commented Jan 4, 2022

用不了了?有希望吗?

@vanplus
Copy link

vanplus commented Jan 4, 2022

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

@azbh111
Copy link

azbh111 commented Jan 4, 2022

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

不行,登录不了

@JoffreyN
Copy link

JoffreyN commented Jan 4, 2022

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

@azbh111
Copy link

azbh111 commented Jan 4, 2022

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

@vanplus
Copy link

vanplus commented Jan 4, 2022

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
Copy link

azbh111 commented Jan 4, 2022

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
Copy link

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
Copy link

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权限,能用吗?

@xiaogaozi
Copy link

来自其它社区的相关讨论:ehForwarderBot/efb-wechat-slave#126

@zicheng-jscoder
Copy link

每天来一遍

@dazhi1011
Copy link

持续关注

@fulln
Copy link

fulln commented Jan 7, 2022

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

@bzever
Copy link

bzever commented Jan 7, 2022

持续关注

@LIUHanyang96
Copy link

有什么进展吗

@huan huan added the question Further information is requested label Jan 13, 2022
@156874
Copy link

156874 commented Jan 13, 2022

好像还没好

@PonyC
Copy link

PonyC commented Jan 13, 2022

持续关注

@huan
Copy link
Member

huan commented Jan 16, 2022

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

@huan huan closed this as completed Jan 16, 2022
@huan huan unpinned this issue Jan 16, 2022
@huan huan changed the title can't login Can not login with UOS patch Jan 16, 2022
huan added a commit to wechaty/docusaurus that referenced this issue Jan 16, 2022
@huan huan reopened this Jan 20, 2022
@huan huan pinned this issue Jan 20, 2022
@smartnikocj
Copy link

是不是还没有解决呀?

@aote777
Copy link

aote777 commented Feb 3, 2022

等待中

@lx0758
Copy link

lx0758 commented Feb 9, 2022

挖坟

@JS-banana
Copy link

mark

@huan
Copy link
Member

huan commented Feb 9, 2022

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.

@wechaty wechaty locked as off-topic and limited conversation to collaborators Feb 9, 2022
@leochen-g
Copy link
Contributor

good news, uos great again

Please follow this pr #206

@leochen-g
Copy link
Contributor

现在可以安装最新版进行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',
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests