{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/go-log-cache/issues/16","repository_url":"https://api.github.com/repos/cloudfoundry/go-log-cache","labels_url":"https://api.github.com/repos/cloudfoundry/go-log-cache/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/go-log-cache/issues/16/comments","events_url":"https://api.github.com/repos/cloudfoundry/go-log-cache/issues/16/events","html_url":"https://github.com/cloudfoundry/go-log-cache/issues/16","id":321288412,"number":16,"title":"Panic when getting an empty response","user":{"login":"jasonkeene","id":161453,"avatar_url":"https://avatars1.githubusercontent.com/u/161453?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonkeene","html_url":"https://github.com/jasonkeene","followers_url":"https://api.github.com/users/jasonkeene/followers","following_url":"https://api.github.com/users/jasonkeene/following{/other_user}","gists_url":"https://api.github.com/users/jasonkeene/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonkeene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonkeene/subscriptions","organizations_url":"https://api.github.com/users/jasonkeene/orgs","repos_url":"https://api.github.com/users/jasonkeene/repos","events_url":"https://api.github.com/users/jasonkeene/events{/privacy}","received_events_url":"https://api.github.com/users/jasonkeene/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-08T18:04:04Z","updated_at":"2018-05-08T18:04:05Z","closed_at":null,"author_association":"MEMBER","body":"In our testing we had the server return `{}` on a call to `/v1/read/foo`. This panicked.\r\n\r\n```\r\n  Test Panicked\r\n  runtime error: invalid memory address or nil pointer dereference\r\n  /usr/local/go/src/runtime/panic.go:502\r\n\r\n  Full Stack Trace\r\n        /usr/local/go/src/runtime/panic.go:502 +0x229\r\n  code.cloudfoundry.org/go-log-cache.(*Client).Read(0xc42001eba0, 0x16e77e0, 0xc420094660, 0x16702c8, 0xe, 0x0, 0xe7791f700, 0x1a94660, 0x0, 0x0, ...)\r\n        /Users/pivotal/workspace/loggregator-go-workspace/src/code.cloudfoundry.org/go-log-cache/client.go:144 +0x473\r\n```\r\n\r\nnil pointer deref is here: https://github.com/cloudfoundry/go-log-cache/blob/dc64cae3e049fca3bb06d746eb03bf3f2d28e6b2/client.go#L146\r\n"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/go-log-cache/issues/comments/387490655","html_url":"https://github.com/cloudfoundry/go-log-cache/issues/16#issuecomment-387490655","issue_url":"https://api.github.com/repos/cloudfoundry/go-log-cache/issues/16","id":387490655,"user":{"login":"cf-gitbot","id":5589368,"avatar_url":"https://avatars3.githubusercontent.com/u/5589368?v=4","gravatar_id":"","url":"https://api.github.com/users/cf-gitbot","html_url":"https://github.com/cf-gitbot","followers_url":"https://api.github.com/users/cf-gitbot/followers","following_url":"https://api.github.com/users/cf-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/cf-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-gitbot/subscriptions","organizations_url":"https://api.github.com/users/cf-gitbot/orgs","repos_url":"https://api.github.com/users/cf-gitbot/repos","events_url":"https://api.github.com/users/cf-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-gitbot/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T18:04:05Z","updated_at":"2018-05-08T18:04:05Z","author_association":"NONE","body":"We have created an issue in Pivotal Tracker to manage this: \n\nhttps://www.pivotaltracker.com/story/show/157404859 \n\nThe labels on this github issue will be updated when the story is started."}}
{"actor":{"display_login":"cf-gitbot"}}