{"action":"created","issue":{"url":"https://api.github.com/repos/zeebe-io/zbc-go/issues/133","repository_url":"https://api.github.com/repos/zeebe-io/zbc-go","labels_url":"https://api.github.com/repos/zeebe-io/zbc-go/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/zeebe-io/zbc-go/issues/133/comments","events_url":"https://api.github.com/repos/zeebe-io/zbc-go/issues/133/events","html_url":"https://github.com/zeebe-io/zbc-go/issues/133","id":306928715,"number":133,"title":"Improve error message if no broker is running","user":{"login":"berndruecker","id":1217596,"avatar_url":"https://avatars3.githubusercontent.com/u/1217596?v=4","gravatar_id":"","url":"https://api.github.com/users/berndruecker","html_url":"https://github.com/berndruecker","followers_url":"https://api.github.com/users/berndruecker/followers","following_url":"https://api.github.com/users/berndruecker/following{/other_user}","gists_url":"https://api.github.com/users/berndruecker/gists{/gist_id}","starred_url":"https://api.github.com/users/berndruecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berndruecker/subscriptions","organizations_url":"https://api.github.com/users/berndruecker/orgs","repos_url":"https://api.github.com/users/berndruecker/repos","events_url":"https://api.github.com/users/berndruecker/events{/privacy}","received_events_url":"https://api.github.com/users/berndruecker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-20T15:57:17Z","updated_at":"2018-03-22T10:08:42Z","closed_at":null,"author_association":"MEMBER","body":"If no broker is running you get the following exception when using zbctl - it is hard to guess the real problem:\r\n\r\n```\r\nC:\\Camunda\\zeebe-broker-0.7.0\\zbctl>zbctl create topic --name default-topic --partitions 1\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xc0000005 code=0x0 addr=0x0 pc=0x5fb240]\r\n\r\ngoroutine 19 [running]:\r\ngithub.com/zeebe-io/zbc-go/zbc.(*dispatcher).addTransaction(...)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/zbc/dispatcher.go:17\r\ngithub.com/zeebe-io/zbc-go/zbc.(*transportManager).transportWorker.func1(0xbea411664f0e7a18, 0x3df1bae8, 0x7dc0a0)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/zbc/transport_manager.go:48 +0x30\r\ngithub.com/zeebe-io/zbc-go/zbc.MessageRetry(0xc0420edfb0, 0xc0420edfa0, 0xd, 0x0)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/zbc/retry.go:89 +0xc4\r\ngithub.com/zeebe-io/zbc-go/zbc.(*transportManager).transportWorker(0xc042040b90)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/zbc/transport_manager.go:47 +0x5b\r\ncreated by github.com/zeebe-io/zbc-go/zbc.newTransportManager\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/zbc/transport_manager.go:65 +0xe2\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xc0000005 code=0x0 addr=0x18 pc=0x5f50e7]\r\n\r\ngoroutine 1 [running]:\r\ngithub.com/zeebe-io/zbc-go/zbc.(*responseHandler).unmarshalTopology(0xc0420665a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/zbc/response.go:21 +0xb7\r\ngithub.com/zeebe-io/zbc-go/zbc.(*topologyManager).initTopology(0xc04207ac60, 0x68e738, 0xc04207ac60, 0x0)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/zbc/topology_manager.go:77 +0x153\r\ngithub.com/zeebe-io/zbc-go/zbc.newTopologyManager(0xc0420d20a0, 0xd, 0xc042066728)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/zbc/topology_manager.go:181 +0x161\r\ngithub.com/zeebe-io/zbc-go/zbc.newRequestManager(0xc0420d20a0, 0xd, 0xc042040b70)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/zbc/request_manager.go:238 +0x74\r\ngithub.com/zeebe-io/zbc-go/zbc.NewClient(0xc0420d20a0, 0xd, 0xd, 0xc04209a580, 0x1c60a8)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/zbc/client.go:119 +0x40\r\nmain.main.func2(0xc04209a580, 0x100, 0xc04209a580)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/cmd/main.go:141 +0x54\r\ngithub.com/zeebe-io/zbc-go/vendor/github.com/urfave/cli.HandleAction(0x632e60, 0xc042040680, 0xc04209a580, 0xc042086300, 0x0)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/vendor/github.com/urfave/cli/app.go:491 +0xd9\r\ngithub.com/zeebe-io/zbc-go/vendor/github.com/urfave/cli.Command.Run(0x67faed, 0x5, 0x0, 0x0, 0xc042040700, 0x1, 0x1, 0x682720, 0x12, 0x0, ...)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/vendor/github.com/urfave/cli/command.go:212 +0xa9c\r\ngithub.com/zeebe-io/zbc-go/vendor/github.com/urfave/cli.(*App).RunAsSubcommand(0xc042050820, 0xc04209a160, 0x0, 0x0)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/vendor/github.com/urfave/cli/app.go:380 +0xa82\r\ngithub.com/zeebe-io/zbc-go/vendor/github.com/urfave/cli.Command.startApp(0x67fcbc, 0x6, 0x0, 0x0, 0xc0420406f0, 0x1, 0x1, 0x68243e, 0x11, 0x0, ...)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/vendor/github.com/urfave/cli/command.go:299 +0x927\r\ngithub.com/zeebe-io/zbc-go/vendor/github.com/urfave/cli.Command.Run(0x67fcbc, 0x6, 0x0, 0x0, 0xc0420406f0, 0x1, 0x1, 0x68243e, 0x11, 0x0, ...)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/vendor/github.com/urfave/cli/command.go:98 +0x13d4\r\ngithub.com/zeebe-io/zbc-go/vendor/github.com/urfave/cli.(*App).Run(0xc042050680, 0xc042072000, 0x7, 0x8, 0x0, 0x0)\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/vendor/github.com/urfave/cli/app.go:256 +0x6ff\r\nmain.main()\r\n        /home/travis/gopath/src/github.com/zeebe-io/zbc-go/cmd/main.go:403 +0x197d\r\n```"},"comment":{"url":"https://api.github.com/repos/zeebe-io/zbc-go/issues/comments/375243435","html_url":"https://github.com/zeebe-io/zbc-go/issues/133#issuecomment-375243435","issue_url":"https://api.github.com/repos/zeebe-io/zbc-go/issues/133","id":375243435,"user":{"login":"menski","id":516296,"avatar_url":"https://avatars2.githubusercontent.com/u/516296?v=4","gravatar_id":"","url":"https://api.github.com/users/menski","html_url":"https://github.com/menski","followers_url":"https://api.github.com/users/menski/followers","following_url":"https://api.github.com/users/menski/following{/other_user}","gists_url":"https://api.github.com/users/menski/gists{/gist_id}","starred_url":"https://api.github.com/users/menski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/menski/subscriptions","organizations_url":"https://api.github.com/users/menski/orgs","repos_url":"https://api.github.com/users/menski/repos","events_url":"https://api.github.com/users/menski/events{/privacy}","received_events_url":"https://api.github.com/users/menski/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T10:08:42Z","updated_at":"2018-03-22T10:08:42Z","author_association":"OWNER","body":"This should be fixed with the next zbc release. I will keep the ticket open until the release is out. Thanks for the feedback"}}
{"actor":{"display_login":"menski"}}