-
-
Notifications
You must be signed in to change notification settings - Fork 341
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
The login & error correction logic #39
Comments
Further on to the error correction logic, I reverted to my old main.go, and scanned in right away, and make my plugin working for me:
I.e., after letting the session running for ~30 minutes, I suddenly receiving the
After I received the error for the fist time, sending " This is another proof from a different angle showing that there is something wrong with the error recovery logic. Please help, and, can you make sure the session can go on for hours and even days please? Thx. |
Better yet, please wrap up the first loop as internal loop so that |
the session can go hours not days |
And the network may not stable. |
If by "network not stable" you meant the wechat server then I totally agree -- I had a unreliable network in China so I cannot tell, but here at home, I have fiber Internet, and the only thing I found unreliable is wechat server, not anything else. Moreover, trying from the hosting farms that have 99.9999% reliable rating gives me the exact same conclusion as well. BTW, please elaborate what you mean by "the session can go hours not days". Thx. |
I didn't test the stability of wechat-go, as i know few hours later, the session will broken. I have meet this error before, but rarely. |
OK, when you have some time, please try out the two versions I gave/listed in my OP, and tell me how they work for you, how long can you have the session last, whether scanning-in on the first/second attempt make any differences to you, etc. Thx. |
Hi @songtianyi,
Please use this main.go to replace the one in my https://github.com/suntong/wx-go/tree/master/cmd/wx-go and see what you get.
I was trying to straight-out the login/re-login logic and work flow of
wechat-go
, and this is what i get when I tried to send "3824
":The above error shows up right after I sent "
3824
", and they are the error I've been experiencing when it didn't work for me on my first try.I don't think changing the external login logic should affect my plugin's internal behavior. So I need your help to figure out why it work and why it didn't. -- As I suspected in #34, I've always been scanning-in on the second attempt. I.e., after I saw the time out error in my console. whereas you must have been always scan-in right away. Could such minor difference make such huge impact?
Anyway, apparently the above main.go is not working for me. Could you see if you can make it work (for both first & second attempt) please?
Thanks
The text was updated successfully, but these errors were encountered: