-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Session Cookies not loaded correctly? #31
Comments
Hi dax, your code looks no problem at all. so I suggest you to:
If you still have problem, please provide more details here. |
dax, how about this problem going? I noticed that the domain name is
this seems should not happen if you did not change the code. wechaty always use |
Now we should also consider the new wx.qq.com domain list, i.e.:
Before we load cookie, maybe we should check the current domain name first: If the current domain name is different to the saved, for example: |
WARN PuppetWebBrowserCookie addCookies() exception: invalid cookie domain: invalid domain:".wx2.qq.com"
(Session info: chrome=53.0.2785.92)
(Driver info: chromedriver=2.22 (5e2d5494d735a71aa5c2e7ef9bf5ce96945e92e9),platform=Linux 3.16.0-4-amd64 x86_64)
ERR PuppetWebBrowserCookie load() add() exception: invalid cookie domain: invalid domain:".wx2.qq.com"
(Session info: chrome=53.0.2785.92)
(Driver info: chromedriver=2.22 (5e2d5494d735a71aa5c2e7ef9bf5ce96945e92e9),platform=Linux 3.16.0-4-amd64 x86_64) |
I was also seeing this issue, when trying to extract the minimum files needed to run my own bot.
Wechaty Doctor
This is using the ding-dong example it seems fixed in wechaty 0.6.52 Wechaty Doctor
|
i still get this error sometimes but doesnt' seem to prevent logging in. |
@dcsan I'm planning to add a method like And according to your log, we need to notice the wechat domain for out of China: Also, this method is needed by #121 |
@dcsan @dax-classix the latest code will get So this issue should be fixed by this commit. |
I'm trying to develop using
nodemon
, so my node process is restarting frequently. I wanted to use theprofile
option so I don't need to scan the QR every time it restarts. I am using the sample 7 line script.I initialize like this:
I get the following errors upon restart:
[REDACTED]
contains the (seemingly) correct session info.Am I doing something wrong?
The text was updated successfully, but these errors were encountered: