-
Notifications
You must be signed in to change notification settings - Fork 94
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
Index out of range #18
Comments
应该是修改源码了的 我代码main.go算上注释一共才48行代码, 你报错的代码是78行 或者你重新clone 编译一次 |
没有啊,就按照您的说明,直接clone了之后,改配置文件直接start用的 |
今天还有问题: {"time":"2019-10-22T19:45:30.22699929+08:00","id":"","remote_ip":"10.58.81.3","host":"124.250.81.124","method":"POST","uri":"/auth?msg_signature=939714a0496b80653f0d2a51faf96b1610010ac3×tamp=1571744729&nonce=1571742968","status":405, "latency":70756,"latency_human":"70.756µs","bytes_in":607,"bytes_out":32} |
您好,我们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 ?
谢谢!
The text was updated successfully, but these errors were encountered: