{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/1052","repository_url":"https://api.github.com/repos/influxdata/telegraf","labels_url":"https://api.github.com/repos/influxdata/telegraf/issues/1052/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/1052/comments","events_url":"https://api.github.com/repos/influxdata/telegraf/issues/1052/events","html_url":"https://github.com/influxdata/telegraf/issues/1052","id":149274299,"number":1052,"title":"Docker input panic when decode fails","user":{"login":"sparrc","id":7155926,"avatar_url":"https://avatars.githubusercontent.com/u/7155926?v=3","gravatar_id":"","url":"https://api.github.com/users/sparrc","html_url":"https://github.com/sparrc","followers_url":"https://api.github.com/users/sparrc/followers","following_url":"https://api.github.com/users/sparrc/following{/other_user}","gists_url":"https://api.github.com/users/sparrc/gists{/gist_id}","starred_url":"https://api.github.com/users/sparrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparrc/subscriptions","organizations_url":"https://api.github.com/users/sparrc/orgs","repos_url":"https://api.github.com/users/sparrc/repos","events_url":"https://api.github.com/users/sparrc/events{/privacy}","received_events_url":"https://api.github.com/users/sparrc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-18T21:16:00Z","updated_at":"2016-04-18T21:16:08Z","closed_at":null,"body":"This bug was discovered by our cloud team. This can happen if there is a decode error.\r\n\r\n```\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n\r\n[signal 0xb code=0x1 addr=0x0 pc=0x57eaee]\r\n\r\n\r\n\r\ngoroutine 49 [running]:\r\n\r\ngithub.com/influxdata/telegraf/plugins/inputs/docker.gatherContainerStats(0x0, 0x7f214d869138, 0xc820646f00, 0xc8206a4a20)\r\n\r\n/Users/nhaugo/src/go/src/github.com/influxdata/telegraf/plugins/inputs/docker/docker.go:238 +0x352e\r\n\r\ngithub.com/influxdata/telegraf/plugins/inputs/docker.(*Docker).gatherContainer(0xc820149cc0, 0xc820684280, 0x40, 0xc820684300, 0x1, 0x4, 0xc8206a4570, 0x25, 0xc820684380, 0x40, ...)\r\n\r\n/Users/nhaugo/src/go/src/github.com/influxdata/telegraf/plugins/inputs/docker/docker.go:228 +0x965\r\n\r\ngithub.com/influxdata/telegraf/plugins/inputs/docker.(*Docker).Gather.func1(0xc8206a99c0, 0xc820149cc0, 0x7f214d869138, 0xc820646f00, 0xc820684280, 0x40, 0xc820684300, 0x1, 0x4, 0xc8206a4570, ...)\r\n\r\n/Users/nhaugo/src/go/src/github.com/influxdata/telegraf/plugins/inputs/docker/docker.go:112 +0xa5\r\n\r\ncreated by github.com/influxdata/telegraf/plugins/inputs/docker.(*Docker).Gather\r\n\r\n/Users/nhaugo/src/go/src/github.com/influxdata/telegraf/plugins/inputs/docker/docker.go:116 +0x585\r\n```"},"comment":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/comments/211582703","html_url":"https://github.com/influxdata/telegraf/issues/1052#issuecomment-211582703","issue_url":"https://api.github.com/repos/influxdata/telegraf/issues/1052","id":211582703,"user":{"login":"sparrc","id":7155926,"avatar_url":"https://avatars.githubusercontent.com/u/7155926?v=3","gravatar_id":"","url":"https://api.github.com/users/sparrc","html_url":"https://github.com/sparrc","followers_url":"https://api.github.com/users/sparrc/followers","following_url":"https://api.github.com/users/sparrc/following{/other_user}","gists_url":"https://api.github.com/users/sparrc/gists{/gist_id}","starred_url":"https://api.github.com/users/sparrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparrc/subscriptions","organizations_url":"https://api.github.com/users/sparrc/orgs","repos_url":"https://api.github.com/users/sparrc/repos","events_url":"https://api.github.com/users/sparrc/events{/privacy}","received_events_url":"https://api.github.com/users/sparrc/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T21:16:08Z","updated_at":"2016-04-18T21:16:08Z","body":"cc @nhaugo "}}