songtianyi / wechat-go Goto Github PK
View Code? Open in Web Editor NEWgo version wechat web api and message framework for building wechat robot
License: MIT License
go version wechat web api and message framework for building wechat robot
License: MIT License
请问怎么@群成员发信息
就是说每天或者在特定的情况下给特定的用户发消息,就是通过他的 nickname or wechatid 而不是动态 id 因为动态 id 是对方发起聊天才能获取的好像
It will return plain text after scanned the qrcode . Wechat just says:
<error><ret>1203</ret><message>For account security, newly registered WeChat accounts are unable to log in to Web WeChat. To use WeChat on a computer, use Windows WeChat or Mac WeChat at http://wechat.com</message></error>
你好,我使用手机发送了一个表情,日志有显示接收到消息 msg.Content 为:
<span class=\"emoji emoji1f49f\"></span>
将此消息再次转发给别人时,内容显示的不在是一个表情,而是一串:
\u003cspan class=\\\"emoji emoji1f49f\\\"\u003e\u003c/span\u003e
如何保证发送表情时(如:💯 ),能正常转发,同样的在转发一个Link类型分享消息时,也存在同样问题。
谢谢。
一个账号只能登录一天,第二天就禁止网页版登录。
2017/07/08 08:46:29 [W] handlers for key [51] not registered
2017/07/08 08:46:29 [W] handlers for key [51] not registered
看了一下51是 wechat init message,然后我在自己的插件里加了一条
session.HandlerRegister.Add(wxweb.MSG_INIT, wxweb.Handler(demo), "receiver")
但警告信息仍然在。不知道这个警告的含义是什么,以及该怎么处理才能消除。谢谢!
2017/09/07 11:01:32 [W] login response, window.code=408;
2017/09/07 11:01:32 [E] session exit, login response, window.code=408;
2017/09/07 11:01:32 [I] trying re-login with cache
2017/09/07 11:01:32 [E] re-login error, Post /webwxinit?pass_ticket=&r=1504753292&skey=: unsupported protocol scheme ""
2017/09/07 11:01:35 [I] trying re-login with cache
2017/09/07 11:01:35 [E] re-login error, Post /webwxinit?pass_ticket=&r=1504753295&skey=: unsupported protocol scheme ""
2017/09/07 11:01:38 [I] trying re-login with cache
2017/09/07 11:01:38 [E] re-login error, Post /webwxinit?pass_ticket=&r=1504753298&skey=: unsupported protocol scheme ""
@songtianyi
Same as issues#11, I did:
go build examples/linux/terminal_bot.go
./terminal_bot
运行正常扫码网页登录,然后就看到命令行一堆日志
2017/11/22 06:51:20 [I] entering synccheck loop
2017/11/22 06:51:50 [I] webpush.web.wechat.com 0 0
2017/11/22 06:51:50 [E] Get https://webpush.web.wechat.com/cgi-bin/mmwebwx-bin/synccheck?_=1511351480000&deviceid=e020835203446392&r=1511351480000&sid=99FIil9hg4bBx3oe&skey=%40crypt_73c0b781_67708c6d636e654a635ad9cc2b305a50&synckey=1_667580454%7C2_667580845%7C3_667580399%7C1000_1511345522&uin=2849091348: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
2017/11/22 06:52:20 [I] webpush.web.wechat.com 0 0
2017/11/22 06:52:20 [E] Get https://webpush.web.wechat.com/cgi-bin/mmwebwx-bin/synccheck?_=1511351510000&deviceid=e020835203446392&r=1511351510000&sid=99FIil9hg4bBx3oe&skey=%40crypt_73c0b781_67708c6d636e654a635ad9cc2b305a50&synckey=1_667580454%7C2_667580845%7C3_667580399%7C1000_1511345522&uin=2849091348: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
2017/11/22 06:52:50 [I] webpush.web.wechat.com 0 0
没搞懂 how to verify that it is working fine.
我在聊天窗口输入
美女
but nothing happened.
same for "笑话
".
How to verify that it is working fine? Thx.
前一天拿go-aida项目测试了一两小时,第二天再登录就封了。
[E] session exit, xc.Ret != 0, <error><ret>1203</ret><message>当前登录环境异常。为了你的帐号安全,暂时不能登录web微信。你可以通过Windows微信、Mac微信或者手机客户端微信登录。</message></error>
2017/08/01 23:07:39 [I] QcMAj_vkwQ==
2017/08/01 23:08:12 [W] login response, window.code=408;
2017/08/01 23:08:12 [E] session exit, login response, window.code=408;
2017/08/01 23:08:12 [I] trying re-login with cache
2017/08/01 23:08:12 [E] re-login error, Post /webwxinit?pass_ticket=&r=1501600092&skey=: unsupported protocol scheme ""
2017/08/01 23:08:15 [I] trying re-login with cache
2017/08/01 23:08:15 [E] re-login error, Post /webwxinit?pass_ticket=&r=1501600095&skey=: unsupported protocol scheme ""
2017/08/01 23:08:18 [I] trying re-login with cache
2017/08/01 23:08:18 [E] re-login error, Post /webwxinit?pass_ticket=&r=1501600098&skey=: unsupported protocol scheme ""
2017/08/01 23:08:23 [I] AY19yPPqmA==
2017/08/01 23:08:56 [W] login response, window.code=408;
2017/08/01 23:08:56 [E] session exit, login response, window.code=408;
2017/08/01 23:08:56 [I] trying re-login with cache
2017/08/01 23:08:56 [E] re-login error, Post /webwxinit?pass_ticket=&r=1501600136&skey=: unsupported protocol scheme ""
2017/08/01 23:08:59 [I] trying re-login with cache
2017/08/01 23:08:59 [E] re-login error, Post /webwxinit?pass_ticket=&r=1501600139&skey=: unsupported protocol scheme ""
2017/08/01 23:09:02 [I] trying re-login with cache
2017/08/01 23:09:02 [E] re-login error, Post /webwxinit?pass_ticket=&r=1501600142&skey=: unsupported protocol scheme ""
songtianyi,
你好,我正在学习你的代码。我测试时发现,在forwarder.go文件中,
执行下列步骤时,一直出错
var contact *wxweb.User if msg.FromUserName == session.Bot.UserName { contact = session.Cm.GetContactByUserName(msg.ToUserName) } else { contact = session.Cm.GetContactByUserName(msg.FromUserName) } if contact == nil { return }
这里的contact始终为nil,而这时的contactUserName即是以@@开头的群组的username,不知道大家没有遇到过这个问题。
package main
import (
"fmt"
"time"
"github.com/songtianyi/wechat-go/wxweb"
)
func main() {
s, _ := wxweb.CreateSession(nil, nil, wxweb.TERMINAL_MODE)
go func() {
for {
if s.Bot != nil {
fmt.Println(s.SendText("Hello", s.Bot.UserName, "foo"))
}
time.Sleep(time.Second)
}
}()
s.LoginAndServe(false)
}
尝试用这种方式提交无法成功。
希望能完善类似js版本微信机器人Wechaty的群管理功能
谢谢项目的开发,看起来很不错 :)
想问一下有计划对朋友圈的支持么?这个在技术上是否可行?
比如我有个好友用户名是yanyuanvip,但Message报文中的原文是:
UserName: @1ce4dc3864239ea574adfde537dc50a0
你知道怎样获取原始的用户名吗?
不设置timeout 发送自定义表情 webwxsync/synccheck 会hang up
HalfdogStudio/wechat-user-bot#35
如题:项目下载下来运行正常扫码网页登录,然后就看到命令行一堆日志,没搞懂我能用它来做什么?想请教一下作者,谢谢!!
您可以尝试使用laosj插件进行测试,发送图片的时候返回1 @songtianyi
再虚拟机上运行,本地访问有问题,一看原来是页面地址写死localhost了
为什么获取不到群成员列表呢? 以及该成员在群里发消息后。。无法获取这个人的名称。。只能拿到@xxxx,而不是中文
登录成功之后我立刻使用Cm.GetGroupContacts()获取已经保存到群聊列表的群组,实际上有4个群组保存到通讯录了,然而获取的个数是0。
我的猜测是,是否是因为通讯录列表尚未同步完成?如果是,那么有没有接口可以知道这个同步完成了没有?谢谢!
想要像在微信里一样, 在微信里打开一个链接, 发送给朋友之后, 朋友收到的就是个链接类型的消息, 而不只是一个 url地址, 请问这样的需求能否实现, 如果可以的话, 该怎么做呢, thx
返回如下:
<error><ret>1203</ret><message>为了你的帐号安全,此微信号已不允许登录网页微信。你可以使用Windows微信或Mac微信在电脑端登录。Windows微信下载地址:https://pc.weixin.qq.com Mac微信下载地址:https://mac.weixin.qq.com</message></error>
有解决办法吗?谢谢!
Hi @songtianyi,
The new plugin that I'm writting (#34) need more functionalities to switcher
the 管理插件的插件. So far it supports:
#关闭某个插件, 在微信聊天窗口输入
disable faceplusplus
#开启某个插件, 在微信聊天窗口输入
enable faceplusplus
#查看所有插件信息, 在微信聊天窗口输入
dump
Please (consider) adding one more command to it,
config [plugin] more config strings for the plugin
and have a way for the plugin to take the more config strings for the plugin
and do its own configuration.
I need to pass two integers to my plugin for its configuration, which I can take care of it myself when I get the string.
Thanks for consideration!
你在readme里应该写清楚,这是什么项目,用来做什么,应用场景是 什么。
我觉得我应该对你这个感兴趣,但不知道这是做什么的?
func CreateLocalDiskStorage(dir string) StorageWrapper {
// create dir
if _, err := os.Stat(dir); os.IsNotExist(err) {
// here the dirctory FileMode is error
os.MkdirAll(dir, os.ModePerm)
}
// check dir
s := &LocalDiskStorage{
Dir: strings.TrimSuffix(dir, "/"),
}
return s
}
2017/09/05 14:56:57 [I] webpush.wx.qq.com 0 7
2017/09/05 14:56:57 [I] webpush.wx.qq.com 0 7
2017/09/05 14:56:57 [I] webpush.wx.qq.com 0 7
2017/09/05 14:56:57 [I] webpush.wx.qq.com 0 7
2017/09/05 14:56:57 [I] webpush.wx.qq.com 0 7
2017/09/05 14:56:57 [I] webpush.wx.qq.com 0 7
2017/09/05 14:56:57 [I] webpush.wx.qq.com 0 7
2017/09/05 14:56:57 [I] webpush.wx.qq.com 0 7
2017/09/05 14:56:57 [I] webpush.wx.qq.com 0 7
2017/09/05 14:56:57 [I] webpush.wx.qq.com 0 7
2017/09/05 14:56:57 [I] webpush.wx.qq.com 0 7
2017/09/05 14:56:57 [I] webpush.wx.qq.com 0 7
登陆后自动掉线,重连失败
SyncCheck会收到1102返回码,再也接受不到消息。
尝试在收到1102后切换到其他可用的服务也无法重连 。
SyncSrv: "webpush.wx.qq.com",
SyncSrv: "wx2.qq.com",
然后尝试使用定时器每隔3分钟在上面两个服务之间切换也没有作用。
新号老号测试结果都这样。
有没有人遇到一样的情况呢?谢谢指教。
首先感谢作者的分享,最近使用中发现一个问题:我的需求是获取所有好友信息(总共3000人)。
看了下应该是通过getcontact这个API返回的response,但是返回就1558个。
进一步研究发现有过seq参数(初始为0),试了下用第一次返回的seq作为参数再请求一次getcontact,返回为空。
不知道有没有朋友遇到这个问题,是否有办法实现我这个需求?
现在WebWxGetContact接口获取到的联系人信息为空, 而 WebWxInit 接口则会返回联系人信息
2017/07/04 23:20:17 [E] invalid response, window.code=201;
...
2017/07/04 23:20:25 [I] entering synccheck loop
2017/07/04 23:20:25 [I] webpush.wx2.qq.com 0 2
2017/07/04 23:20:26 [E] handlers for key [51] not registered
Terminal 里提示这个报错:
2017/05/09 09:29:55 [E] invalid response, window.code=201;
2017/05/09 09:30:00 login failed:expected element type <error> but have <script>
[pi@raspberrypi ~/c/wechat-go/tests] $ uname -a
Linux raspberrypi 4.4.21-v7+ #911 SMP Thu Sep 15 14:22:38 BST 2016 armv7l GNU/Linux
[pi@raspberrypi ~/c/wechat-go/tests] $
[pi@raspberrypi ~/c/wechat-go/tests] $ go version
go version go1.7.3 linux/arm
[pi@raspberrypi ~/c/wechat-go/tests] $
~
[pi@raspberrypi ~/c/wechat-go/tests] $ go run test.go
2017/04/28 12:41:53 [D] AfPX6FT9Gw==
2017/04/28 12:41:57 [E] invalid response, window.code=201;
2017/04/28 12:42:09 [D] &{2147483647 @403654952e7d01e4edbcf418f042774c cp4 /cgi-bin/mmwebwx-bin/webwxgeticon?seq=541739479&username=@403654952e7d01e4edbcf418f042774c&skey=@crypt_b31d43c3_df0d7355e9ba022aaf84cff4bc66db3c 0 0 [] 0 0 1 become an old man, filled with regret, waiting to die alone 0 0 0 0 0 2 1 17 0 0 0 0}
2017/04/28 12:42:13 [E] session exit, json: cannot unmarshal number 2147586143 into Go value of type int
有获取公众号推送文章的接口吗?谢谢!
Please add a "Debug level" control to wechat-go so as to control the level of logging to console, as the following is too much, if we want to keep the session going on for hours and even days:
2017/12/20 19:39:38 [I] webpush.web.wechat.com 0 2
2017/12/20 19:40:05 [I] webpush.web.wechat.com 0 0
2017/12/20 19:40:07 [I] webpush.web.wechat.com 0 2
2017/12/20 19:40:34 [I] webpush.web.wechat.com 0 0
2017/12/20 19:41:00 [I] webpush.web.wechat.com 0 0
2017/12/20 19:41:26 [I] webpush.web.wechat.com 0 0
2017/12/20 19:41:50 [I] webpush.web.wechat.com 0 2
2017/12/20 19:41:51 [W] no handlers for key [47]
2017/12/20 19:42:17 [I] webpush.web.wechat.com 0 0
2017/12/20 19:42:43 [I] webpush.web.wechat.com 0 0
2017/12/20 19:43:10 [I] webpush.web.wechat.com 0 0
2017/12/20 19:43:36 [I] webpush.web.wechat.com 0 0
2017/12/20 19:44:02 [I] webpush.web.wechat.com 0 0
2017/12/20 19:44:28 [I] webpush.web.wechat.com 0 0
2017/12/20 19:44:29 [I] webpush.web.wechat.com 0 2
2017/12/20 19:44:56 [I] webpush.web.wechat.com 0 0
2017/12/20 19:45:08 [I] webpush.web.wechat.com 0 2
2017/12/20 19:45:35 [I] webpush.web.wechat.com 0 0
2017/12/20 19:46:01 [I] webpush.web.wechat.com 0 0
2017/12/20 19:46:28 [I] webpush.web.wechat.com 0 0
2017/12/20 19:46:54 [I] webpush.web.wechat.com 0 0
2017/12/20 19:47:20 [I] webpush.web.wechat.com 0 0
2017/12/20 19:47:46 [I] webpush.web.wechat.com 0 0
2017/12/20 19:48:12 [I] webpush.web.wechat.com 0 0
2017/12/20 19:48:38 [I] webpush.web.wechat.com 0 0
2017/12/20 19:49:04 [I] webpush.web.wechat.com 0 0
2017/12/20 19:49:31 [I] webpush.web.wechat.com 0 0
2017/12/20 19:49:57 [I] webpush.web.wechat.com 0 0
2017/12/20 19:50:23 [I] webpush.web.wechat.com 0 0
2017/12/20 19:50:49 [I] webpush.web.wechat.com 0 0
2017/12/20 19:51:15 [I] webpush.web.wechat.com 0 0
2017/12/20 19:51:22 [I] webpush.web.wechat.com 0 2
2017/12/20 19:51:49 [I] webpush.web.wechat.com 0 0
2017/12/20 19:52:15 [I] webpush.web.wechat.com 0 0
2017/12/20 19:52:41 [I] webpush.web.wechat.com 0 0
2017/12/20 19:53:07 [I] webpush.web.wechat.com 0 0
2017/12/20 19:53:33 [I] webpush.web.wechat.com 0 0
2017/12/20 19:53:59 [I] webpush.web.wechat.com 0 0
2017/12/20 19:54:22 [I] webpush.web.wechat.com 0 2
2017/12/20 19:54:50 [I] webpush.web.wechat.com 0 0
2017/12/20 19:55:16 [I] webpush.web.wechat.com 0 0
2017/12/20 19:55:42 [I] webpush.web.wechat.com 0 0
2017/12/20 19:56:08 [I] webpush.web.wechat.com 0 0
2017/12/20 19:56:34 [I] webpush.web.wechat.com 0 0
2017/12/20 19:57:00 [I] webpush.web.wechat.com 0 0
2017/12/20 19:57:01 [I] webpush.web.wechat.com 0 2
2017/12/20 19:57:02 [W] no handlers for key [43]
2017/12/20 19:57:28 [I] webpush.web.wechat.com 0 0
2017/12/20 19:57:54 [I] webpush.web.wechat.com 0 0
2017/12/20 19:58:04 [I] webpush.web.wechat.com 0 2
2017/12/20 19:58:31 [I] webpush.web.wechat.com 0 0
2017/12/20 19:58:57 [I] webpush.web.wechat.com 0 0
2017/12/20 19:59:09 [I] webpush.web.wechat.com 0 2
2017/12/20 19:59:36 [I] webpush.web.wechat.com 0 0
2017/12/20 20:00:02 [I] webpush.web.wechat.com 0 0
2017/12/20 20:00:28 [I] webpush.web.wechat.com 0 0
2017/12/20 20:00:54 [I] webpush.web.wechat.com 0 0
2017/12/20 20:01:09 [I] webpush.web.wechat.com 0 2
2017/12/20 20:01:31 [I] webpush.web.wechat.com 0 2
2017/12/20 20:01:58 [I] webpush.web.wechat.com 0 0
2017/12/20 20:02:10 [I] webpush.web.wechat.com 0 2
2017/12/20 20:02:11 [W] no handlers for key [47]
2017/12/20 20:02:38 [I] webpush.web.wechat.com 0 0
2017/12/20 20:03:04 [I] webpush.web.wechat.com 0 0
2017/12/20 20:03:30 [I] webpush.web.wechat.com 0 0
2017/12/20 20:03:56 [I] webpush.web.wechat.com 0 0
2017/12/20 20:04:00 [I] webpush.web.wechat.com 0 2
2017/12/20 20:04:27 [I] webpush.web.wechat.com 0 0
2017/12/20 20:04:53 [I] webpush.web.wechat.com 0 0
2017/12/20 20:05:19 [I] webpush.web.wechat.com 0 0
2017/12/20 20:05:37 [I] webpush.web.wechat.com 0 2
2017/12/20 20:06:05 [I] webpush.web.wechat.com 0 0
2017/12/20 20:06:31 [I] webpush.web.wechat.com 0 0
2017/12/20 20:06:57 [I] webpush.web.wechat.com 0 0
2017/12/20 20:07:23 [I] webpush.web.wechat.com 0 0
2017/12/20 20:07:49 [I] webpush.web.wechat.com 0 0
2017/12/20 20:08:14 [I] webpush.web.wechat.com 0 0
2017/12/20 20:08:40 [I] webpush.web.wechat.com 0 0
2017/12/20 20:09:07 [I] webpush.web.wechat.com 0 0
2017/12/20 20:09:32 [I] webpush.web.wechat.com 0 0
2017/12/20 20:09:51 [I] webpush.web.wechat.com 0 2
2017/12/20 20:10:18 [I] webpush.web.wechat.com 0 0
2017/12/20 20:10:44 [I] webpush.web.wechat.com 0 0
2017/12/20 20:11:10 [I] webpush.web.wechat.com 0 0
2017/12/20 20:11:40 [I] webpush.web.wechat.com 0 0
we can finalize the details later...
如果像这样发:
session.SendText("大家好,现在是早晨7点30分。", session.Bot.UserName, group.UserName)
session.SendText("大家好,现在是早晨7点30分。", session.Bot.UserName, group.UserName)
session.SendText("大家好,现在是早晨7点30分。", session.Bot.UserName, group.UserName)
第二条消息就被微信吃了。
如果休息一下就没事了:
session.SendText("大家好,现在是早晨7点30分。", session.Bot.UserName, group.UserName)
time.Sleep(time.Second * 1)
session.SendText("大家好,现在是早晨7点30分。", session.Bot.UserName, group.UserName)
time.Sleep(time.Second * 1)
session.SendText("大家好,现在是早晨7点30分。", session.Bot.UserName, group.UserName)
实测连发给不同用户不会被吞,如这样是可以的:
session.SendText("大家好,现在是早晨7点30分。", session.Bot.UserName, group.UserName)
session.SendText("大家好,现在是早晨7点30分。", session.Bot.UserName, anothergroup.UserName)
session.SendText("大家好,现在是早晨7点30分。", session.Bot.UserName, group.UserName)
请问能否在在SendText的时候主动加个延时或者控制一下前后间隔?
比如go语言只服务于监控消息的收发,长轮训接受消息
类似于 https://github.com/sjdy521/Mojo-Weixin
这样的 因为mojo可能不是多线程的而且不稳定
不知道你这个go版本的 是不是能 做成mojo这样的
I'm planing to write a new plugin for your excellent package.
Would you accept PR for it?
I can provide more details if interested.
thx
在阿里云内新开一个 tmux session,半小时内一定会出现
session exit, session down, sel 4%
本地无法重现。
稍微看了下代码,这里 如果 sel
不是 0 或者 7 就直接报错退出。然而在 itchat 对应的逻辑是这么写的:
i = sync_check(self)
if i is None:
self.alive = False
elif i == '0':
pass
else:
msgList, contactList = self.get_msg()
if msgList:
msgList = produce_msg(self, msgList)
for msg in msgList:
self.msgList.put(msg)
if contactList:
chatroomList, otherList = [], []
for contact in contactList:
if '@@' in contact['UserName']:
chatroomList.append(contact)
else:
otherList.append(contact)
chatroomMsg = update_local_chatrooms(self, chatroomList)
chatroomMsg['User'] = self.loginInfo['User']
self.msgList.put(chatroomMsg)
update_local_friends(self, otherList)
retryCount = 0
sync_check
返回的 i
就是 wechat-go 里的 sel
,并没有非 0 或 7 就退出的逻辑。
我并不了解微信里这些数字的含义,您可否再看一下这里是否一定有必要退出呢?谢谢。
session.HandlerRegister.Add(wxweb.MSG_LINK, wxweb.Handler(demo), "textdemo")
func demo(session *wxweb.Session, msg *wxweb.ReceivedMessage) {
fmt.Println(fmt.Sprintf("%v", msg.Content))
fmt.Println(fmt.Sprintf("%#v", msg))
}
当用户使用自定义增强的Log库时,可以把wechat-go的输出日志纳入统一管理,谢谢🙏
报错 open /public/gdJLVy36up==.jpg: permission denied
有个办法可以避免报错,就是自己创建public文件夹而不是由wechat-go去创建,但是还是改一下这个问题比较好。
接受到群消息时,如果发消息人不是我的好友,取不到群里发消息人的昵称。
接受到群消息时,logs.Info(“%+v”, msg)
好几个信息为nil
mm, err := wxweb.CreateMemberManagerFromGroupContact(session, contact)
if err != nil {
logs.Debug(err)
return
}
who := mm.GetContactByUserName(msg.Who)
发消息的人和我是好友,who里有内容,不是好友,who为nil
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
":
2017/12/20 19:31:32 [I] AcAIgEEJcA==
QRCode here
2017/12/20 19:32:01 [W] login response, window.code=408;
2017/12/20 19:32:01 [E] session exit, login response, window.code=408;
2017/12/20 19:32:30 [W] login response, window.code=201;
2017/12/20 19:32:45 [I] &{28490913...
login successful on second attempt
...
2017/12/20 19:35:27 [I] webpush.web.wechat.com 0 2
2017/12/20 19:35:28 [W] no handlers for key [51]
2017/12/20 19:35:58 [I] webpush.web.wechat.com 0 0
2017/12/20 19:35:58 [E] Get https://webpush.web.wechat.com/cgi-bin/mmwebwx-bin/synccheck?_=1513816528000&deviceid=e219888375988845&r=1513816528000&sid=Blz45ePCcGpesIXo&skey=%40crypt_73c0b781_d641e4f28e65c0a46ca2be960effa5e3&synckey=1_667596270%7C2_667600694%7C3_667600570%7C11_667600646%7C13_667390534%7C201_1513816527%7C203_1513808070%7C1000_1513816443%7C1001_1513815314&uin=2849091348: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
2017/12/20 19:36:28 [I] webpush.web.wechat.com 0 0
2017/12/20 19:36:28 [E] Get https://webpush.web.wechat.com/cgi-bin/mmwebwx-bin/synccheck?_=1513816558000&deviceid=e219888375988845&r=1513816558000&sid=Blz45ePCcGpesIXo&skey=%40crypt_73c0b781_d641e4f28e65c0a46ca2be960effa5e3&synckey=1_667596270%7C2_667600694%7C3_667600570%7C11_667600646%7C13_667390534%7C201_1513816527%7C203_1513808070%7C1000_1513816443%7C1001_1513815314&uin=2849091348: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.