您好,我们7月份按照您文档的介绍克隆了代码,运行了3个月后,突然出现了index out of range的错误。
{"time":"2019-10-12T10:25:08.140025494+08:00","level":"-","prefix":"-","file":"main.go","line":"212","message":"微信 Token 更新成功: DAjr-pZNvNb281TQTMc7gbIWdmML_UViTwgo0ii1HVLiasZuKl6KKbQOp70XIB93v0T_4m1NSlKhXiKQMsX-TlTLkXwob2GG7S-4R13DAYn0Iv57BRDj5VMmYnKQ2hmwiPFHPhV20lbu8rPhwmK0RrHXuYj2EsDIVQw6Nv2AvByYXZFFojObLhLvcQKZLV-heK5GEM1_R1w0ihCh6uB5-A,有效时间: 7200"}
echo: http: panic serving 10.58.165.137:28625: runtime error: index out of range
goroutine 2335 [running]:
net/http.(*conn).serve.func1(0xc42039bcc0)
/usr/local/go/src/net/http/server.go:1721 +0xd0
panic(0x6fc820, 0x8d0180)
/usr/local/go/src/runtime/panic.go:489 +0x2cf
main.SendMsg(0x8b3fc0, 0xc42005e150, 0xc4201b3b68, 0x4c3a62)
/Users/yanjunhui/go/src/github.com/yanjunhui/chat/main.go:78 +0x76c
github.com/labstack/echo.(*Echo).add.func1(0x8b3fc0, 0xc42005e150, 0x8da920, 0x4)
/Users/yanjunhui/go/src/github.com/labstack/echo/echo.go:467 +0x90
github.com/labstack/echo/middleware.LoggerWithConfig.func2.1(0x8b3fc0, 0xc42005e150, 0x0, 0x0)
/Users/yanjunhui/go/src/github.com/labstack/echo/middleware/logger.go:111 +0x12b
github.com/labstack/echo.(*Echo).ServeHTTP.func1(0x8b3fc0, 0xc42005e150, 0xc42011c398, 0x756a80)
/Users/yanjunhui/go/src/github.com/labstack/echo/echo.go:558 +0x10e
github.com/labstack/echo.(*Echo).ServeHTTP(0xc42011c340, 0x8ad800, 0xc4203cc460, 0xc420298000)
/Users/yanjunhui/go/src/github.com/labstack/echo/echo.go:567 +0x24c
net/http.serverHandler.ServeHTTP(0xc4200a8580, 0x8ad800, 0xc4203cc460, 0xc420298000)
/usr/local/go/src/net/http/server.go:2568 +0x92
net/http.(*conn).serve(0xc42039bcc0, 0x8add00, 0xc420320280)
/usr/local/go/src/net/http/server.go:1825 +0x612
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2668 +0x2ce
{"time":"2019-10-12T11:24:57.347413235+08:00","level":"-","prefix":"-","file":"main.go","line":"116","message":"发送信息给JiaoHongYun, 信息内容: 仓网还未配置特殊供应商信息当前环境: [dev]\r\n, 微信返
回结果: {"errcode":0,"errmsg":"ok","invaliduser":""}"}
跟Issue #8 相比,我们并没有修改任何源代码,但是我们没有开启回调模式获取key。
您能帮我们看一下原因吗?是不是使用您的网关必须要开启回调模式获取key ?
谢谢!