{"action":"created","issue":{"url":"https://api.github.com/repos/franela/goreq/issues/112","labels_url":"https://api.github.com/repos/franela/goreq/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/franela/goreq/issues/112/comments","events_url":"https://api.github.com/repos/franela/goreq/issues/112/events","html_url":"https://github.com/franela/goreq/issues/112","id":99658159,"number":112,"title":"Error: cant assign address","user":{"login":"chespinoza","id":3278356,"avatar_url":"https://avatars.githubusercontent.com/u/3278356?v=3","gravatar_id":"","url":"https://api.github.com/users/chespinoza","html_url":"https://github.com/chespinoza","followers_url":"https://api.github.com/users/chespinoza/followers","following_url":"https://api.github.com/users/chespinoza/following{/other_user}","gists_url":"https://api.github.com/users/chespinoza/gists{/gist_id}","starred_url":"https://api.github.com/users/chespinoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chespinoza/subscriptions","organizations_url":"https://api.github.com/users/chespinoza/orgs","repos_url":"https://api.github.com/users/chespinoza/repos","events_url":"https://api.github.com/users/chespinoza/events{/privacy}","received_events_url":"https://api.github.com/users/chespinoza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-07T14:27:19Z","updated_at":"2015-08-07T15:57:40Z","closed_at":null,"body":"Hi, I'm just start using goreq:\r\n\r\nfunc GetAdress(lat, lon float64) (string, error) {\r\n\turl := fmt.Sprintf(\"http://10.0.0.29/reverse?format=json&lat=%v&lon=%v&zoom=18\", lat, lon)\r\n\tres, err := http.Get(url)\r\n\tif err != nil {\r\n\t\treturn \"\", err\r\n\r\n\t}\r\n\tbody, err := ioutil.ReadAll(res.Body)\r\n\tif err != nil {\r\n\t\tfmt.Println(err.Error())\r\n\t\treturn \"\", err\r\n\t}\r\n\tvar data GeoResponse\r\n\terr = json.Unmarshal(body, &data)\r\n\tif err != nil {\r\n\t\tfmt.Println(err.Error())\r\n\t\treturn \"\", err\r\n\t}\r\n\treturn data.DisplayName, nil\r\n}\r\n\r\nBefore using goreq I was using a raw http.Get and never got an error:\r\n\tres, err := http.Get(url)\r\n\tif err != nil {\r\n\t\treturn \"\", err\r\n\t}\r\nAfter the change I began having problems requesting a internal http service :\r\ndial tcp 10.0.0.29:80: cannot assign requested address\r\n\r\nThe requests are running into goroutines 5-10 by sec using golang 1.4.1\r\n\r\nThanks in advance.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/franela/goreq/issues/comments/128746467","html_url":"https://github.com/franela/goreq/issues/112#issuecomment-128746467","issue_url":"https://api.github.com/repos/franela/goreq/issues/112","id":128746467,"user":{"login":"chespinoza","id":3278356,"avatar_url":"https://avatars.githubusercontent.com/u/3278356?v=3","gravatar_id":"","url":"https://api.github.com/users/chespinoza","html_url":"https://github.com/chespinoza","followers_url":"https://api.github.com/users/chespinoza/followers","following_url":"https://api.github.com/users/chespinoza/following{/other_user}","gists_url":"https://api.github.com/users/chespinoza/gists{/gist_id}","starred_url":"https://api.github.com/users/chespinoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chespinoza/subscriptions","organizations_url":"https://api.github.com/users/chespinoza/orgs","repos_url":"https://api.github.com/users/chespinoza/repos","events_url":"https://api.github.com/users/chespinoza/events{/privacy}","received_events_url":"https://api.github.com/users/chespinoza/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T15:57:40Z","updated_at":"2015-08-07T15:57:40Z","body":"Ok, I just edit the code above, as a additional info, that problem appear sometimes, 10% times aprox."}}