-
Notifications
You must be signed in to change notification settings - Fork 77
Description
fail 的邮件内容如下,不知为何?
curl http://127.0.0.1:4000/sender/mail fail:Get http://127.0.0.1:4000/sender/mail?tags=&metric=mem.memfree.percent&priority=0&exp_id=0&stra_id=33&tpl_id=11&endpoint=EAVL180160&status=OK&step=1&time=2019-02-20+10%3A26%3A00: EOF. resp:
日志如下
2019/02/20 10:19:55 config.go:71: load configuration file cfg.json successfully
2019/02/20 10:19:55 http.go:25: http listening 0.0.0.0:4000
2019/02/20 10:26:28 server.go:2923: http: panic serving 127.0.0.1:43428: 400:tos is necessary
goroutine 3 [running]:
net/http.(*conn).serve.func1(0xc420190000)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x76a840, 0xc42000c1e0)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/toolkits/web/param.MustString(0xc420196000, 0x7add19, 0x3, 0x0, 0x0, 0x0, 0x0, 0x9)
/home/mygo/src/github.com/toolkits/web/param/param.go:42 +0x1c0
github.com/open-falcon/mail-provider/http.configProcRoutes.func1(0x7f8b20, 0xc42019c000, 0xc420196000)
/home/mygo/src/github.com/open-falcon/mail-provider/http/mail.go:22 +0x130
net/http.HandlerFunc.ServeHTTP(0x7c9f70, 0x7f8b20, 0xc42019c000, 0xc420196000)
/usr/local/go/src/net/http/server.go:1947 +0x44
net/http.(*ServeMux).ServeHTTP(0x9b2e20, 0x7f8b20, 0xc42019c000, 0xc420196000)
/usr/local/go/src/net/http/server.go:2337 +0x130
net/http.serverHandler.ServeHTTP(0xc420172750, 0x7f8b20, 0xc42019c000, 0xc420196000)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc420190000, 0x7f8de0, 0xc420064300)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2019/02/20 10:26:39 server.go:2923: http: panic serving 127.0.0.1:43450: 400:tos is necessary
goroutine 50 [running]:
net/http.(*conn).serve.func1(0xc42033e960)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x76a840, 0xc42037c2a0)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/toolkits/web/param.MustString(0xc420386000, 0x7add19, 0x3, 0x0, 0x0, 0x0, 0x0, 0x9)
/home/mygo/src/github.com/toolkits/web/param/param.go:42 +0x1c0
github.com/open-falcon/mail-provider/http.configProcRoutes.func1(0x7f8b20, 0xc4203327e0, 0xc420386000)
/home/mygo/src/github.com/open-falcon/mail-provider/http/mail.go:22 +0x130
net/http.HandlerFunc.ServeHTTP(0x7c9f70, 0x7f8b20, 0xc4203327e0, 0xc420386000)
/usr/local/go/src/net/http/server.go:1947 +0x44
net/http.(*ServeMux).ServeHTTP(0x9b2e20, 0x7f8b20, 0xc4203327e0, 0xc420386000)
/usr/local/go/src/net/http/server.go:2337 +0x130
net/http.serverHandler.ServeHTTP(0xc420172750, 0x7f8b20, 0xc4203327e0, 0xc420386000)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc42033e960, 0x7f8de0, 0xc420208800)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b