{"action":"created","issue":{"url":"https://api.github.com/repos/micro/protoc-gen-micro/issues/24","repository_url":"https://api.github.com/repos/micro/protoc-gen-micro","labels_url":"https://api.github.com/repos/micro/protoc-gen-micro/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/micro/protoc-gen-micro/issues/24/comments","events_url":"https://api.github.com/repos/micro/protoc-gen-micro/issues/24/events","html_url":"https://github.com/micro/protoc-gen-micro/issues/24","id":384967516,"node_id":"MDU6SXNzdWUzODQ5Njc1MTY=","number":24,"title":"sudden failed to serve error","user":{"login":"kevinjiaxu96","id":26973140,"node_id":"MDQ6VXNlcjI2OTczMTQw","avatar_url":"https://avatars2.githubusercontent.com/u/26973140?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinjiaxu96","html_url":"https://github.com/kevinjiaxu96","followers_url":"https://api.github.com/users/kevinjiaxu96/followers","following_url":"https://api.github.com/users/kevinjiaxu96/following{/other_user}","gists_url":"https://api.github.com/users/kevinjiaxu96/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinjiaxu96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinjiaxu96/subscriptions","organizations_url":"https://api.github.com/users/kevinjiaxu96/orgs","repos_url":"https://api.github.com/users/kevinjiaxu96/repos","events_url":"https://api.github.com/users/kevinjiaxu96/events{/privacy}","received_events_url":"https://api.github.com/users/kevinjiaxu96/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-27T20:15:02Z","updated_at":"2018-11-27T20:17:46Z","closed_at":"2018-11-27T20:16:28Z","author_association":"NONE","body":"Upon converting from grpc to go-micro, I started having this error:\r\n\r\n```\r\n2018/11/27 12:09:45 Listening on [::]:49635\r\n2018/11/27 12:09:45 Broker Listening on [::]:49636\r\n2018/11/27 12:09:45 Registering node: go.micro.srv.consignment-4b22adf9-6880-4218-bd99-fa4639e0c9fd\r\n2018/11/27 12:09:45 failed to serve: Put http://127.0.0.1:8500/v1/agent/service/register: dial tcp 127.0.0.1:8500: connect: connection refused\r\nexit status 1\r\n```\r\n\r\nWhen converted back to grpc, it works, this problem is only occurring when I am using go-micro.\r\n\r\nHere is main.go:\r\n```go\r\nfunc main() {\r\n\trepo := Repository{}\r\n\r\n\tserver := micro.NewService(\r\n\t\tmicro.Name(\"go.micro.srv.consignment\"),\r\n\t\tmicro.Version(\"latest\"),\r\n\t)\r\n\r\n\tserver.Init()\r\n\r\n\tpb.RegisterShippingServiceHandler(server.Server(), &service{repo})\r\n\r\n\tif err := server.Run(); err != nil {\r\n\t\tlog.Fatalf(\"failed to serve: %v\", err)\r\n\t}\r\n}\r\n```\r\n\r\nEnviroment:\r\n```\r\nmacOS High Sierra - version 10.13.6\r\n```"},"comment":{"url":"https://api.github.com/repos/micro/protoc-gen-micro/issues/comments/442202175","html_url":"https://github.com/micro/protoc-gen-micro/issues/24#issuecomment-442202175","issue_url":"https://api.github.com/repos/micro/protoc-gen-micro/issues/24","id":442202175,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjIwMjE3NQ==","user":{"login":"asim","id":17530,"node_id":"MDQ6VXNlcjE3NTMw","avatar_url":"https://avatars1.githubusercontent.com/u/17530?v=4","gravatar_id":"","url":"https://api.github.com/users/asim","html_url":"https://github.com/asim","followers_url":"https://api.github.com/users/asim/followers","following_url":"https://api.github.com/users/asim/following{/other_user}","gists_url":"https://api.github.com/users/asim/gists{/gist_id}","starred_url":"https://api.github.com/users/asim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asim/subscriptions","organizations_url":"https://api.github.com/users/asim/orgs","repos_url":"https://api.github.com/users/asim/repos","events_url":"https://api.github.com/users/asim/events{/privacy}","received_events_url":"https://api.github.com/users/asim/received_events","type":"User","site_admin":false},"created_at":"2018-11-27T20:17:46Z","updated_at":"2018-11-27T20:17:46Z","author_association":"MEMBER","body":"Why did you close the issue? Did you solve the problem by running consul?"}}
{"actor":{"display_login":"asim"}}