{"action":"created","issue":{"url":"https://api.github.com/repos/getlantern/lantern/issues/3753","repository_url":"https://api.github.com/repos/getlantern/lantern","labels_url":"https://api.github.com/repos/getlantern/lantern/issues/3753/labels{/name}","comments_url":"https://api.github.com/repos/getlantern/lantern/issues/3753/comments","events_url":"https://api.github.com/repos/getlantern/lantern/issues/3753/events","html_url":"https://github.com/getlantern/lantern/issues/3753","id":139423106,"number":3753,"title":"Errors sending HTTP requests to analytics","user":{"login":"myleshorton","id":1143966,"avatar_url":"https://avatars.githubusercontent.com/u/1143966?v=3","gravatar_id":"","url":"https://api.github.com/users/myleshorton","html_url":"https://github.com/myleshorton","followers_url":"https://api.github.com/users/myleshorton/followers","following_url":"https://api.github.com/users/myleshorton/following{/other_user}","gists_url":"https://api.github.com/users/myleshorton/gists{/gist_id}","starred_url":"https://api.github.com/users/myleshorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myleshorton/subscriptions","organizations_url":"https://api.github.com/users/myleshorton/orgs","repos_url":"https://api.github.com/users/myleshorton/repos","events_url":"https://api.github.com/users/myleshorton/events{/privacy}","received_events_url":"https://api.github.com/users/myleshorton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/getlantern/lantern/labels/P1","name":"P1","color":"eb6420"},{"url":"https://api.github.com/repos/getlantern/lantern/labels/PENDING%20MERGE","name":"PENDING MERGE","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"oxtoacart","id":5000654,"avatar_url":"https://avatars.githubusercontent.com/u/5000654?v=3","gravatar_id":"","url":"https://api.github.com/users/oxtoacart","html_url":"https://github.com/oxtoacart","followers_url":"https://api.github.com/users/oxtoacart/followers","following_url":"https://api.github.com/users/oxtoacart/following{/other_user}","gists_url":"https://api.github.com/users/oxtoacart/gists{/gist_id}","starred_url":"https://api.github.com/users/oxtoacart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxtoacart/subscriptions","organizations_url":"https://api.github.com/users/oxtoacart/orgs","repos_url":"https://api.github.com/users/oxtoacart/repos","events_url":"https://api.github.com/users/oxtoacart/events{/privacy}","received_events_url":"https://api.github.com/users/oxtoacart/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/getlantern/lantern/milestones/102","html_url":"https://github.com/getlantern/lantern/milestones/2.1.1","labels_url":"https://api.github.com/repos/getlantern/lantern/milestones/102/labels","id":1335106,"number":102,"title":"2.1.1","description":"","creator":{"login":"myleshorton","id":1143966,"avatar_url":"https://avatars.githubusercontent.com/u/1143966?v=3","gravatar_id":"","url":"https://api.github.com/users/myleshorton","html_url":"https://github.com/myleshorton","followers_url":"https://api.github.com/users/myleshorton/followers","following_url":"https://api.github.com/users/myleshorton/following{/other_user}","gists_url":"https://api.github.com/users/myleshorton/gists{/gist_id}","starred_url":"https://api.github.com/users/myleshorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myleshorton/subscriptions","organizations_url":"https://api.github.com/users/myleshorton/orgs","repos_url":"https://api.github.com/users/myleshorton/repos","events_url":"https://api.github.com/users/myleshorton/events{/privacy}","received_events_url":"https://api.github.com/users/myleshorton/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":17,"state":"open","created_at":"2015-10-02T15:34:29Z","updated_at":"2016-03-09T16:58:24Z","due_on":"2016-03-16T07:00:00Z","closed_at":null},"comments":7,"created_at":"2016-03-08T23:17:32Z","updated_at":"2016-03-09T17:30:09Z","closed_at":"2016-03-09T16:58:24Z","body":"These logs are also filling up the disk space at /var/log/upstard/http-proxy.log. They seem to be sterr logs that don't have file size limits! I'll log a separate bug for that.\r\n\r\n```\r\nMar 06 06:32:09.597 ERROR http-proxy-lantern.analytics: analytics.go:191 Could not send HTTP request to GA: Post https://ssl.google-analytics.com/collect: net/http: TLS handshake timeout\r\npanic: runtime error: index out of range\r\n\r\ngoroutine 32 [running]:\r\ngithub.com/getlantern/http-proxy-lantern/analytics.(*AnalyticsMiddleware).normalizeSite(0xc8200f0340, 0xc821f4e1c7, 0xe, 0x0, 0x0, 0x0)\r\n        /Users/merlin/workspace/go/src/github.com/getlantern/http-proxy-lantern/analytics/analytics.go:144 +0x97a\r\ngithub.com/getlantern/http-proxy-lantern/analytics.(*AnalyticsMiddleware).submitToGoogle(0xc8200f0340)\r\n        /Users/merlin/workspace/go/src/github.com/getlantern/http-proxy-lantern/analytics/analytics.go:91 +0xa9\r\ncreated by github.com/getlantern/http-proxy-lantern/analytics.New\r\n        /Users/merlin/workspace/go/src/github.com/getlantern/http-proxy-lantern/analytics/analytics.go:62 +0x3f4\r\n\r\ngoroutine 1 [runnable]:\r\nnet.runtime_pollWait(0x7f51c27cc168, 0x72, 0xc820010120)\r\n        /Users/merlin/.gvm/gos/go1.5.3/src/runtime/netpoll.go:157 +0x60\r\nnet.(*pollDesc).Wait(0xc820111e20, 0x72, 0x0, 0x0)\r\n        /Users/merlin/.gvm/gos/go1.5.3/src/net/fd_poll_runtime.go:73 +0x3a\r\nnet.(*pollDesc).WaitRead(0xc820111e20, 0x0, 0x0)\r\n        /Users/merlin/.gvm/gos/go1.5.3/src/net/fd_poll_runtime.go:78 +0x36\r\n```"},"comment":{"url":"https://api.github.com/repos/getlantern/lantern/issues/comments/194414301","html_url":"https://github.com/getlantern/lantern/issues/3753#issuecomment-194414301","issue_url":"https://api.github.com/repos/getlantern/lantern/issues/3753","id":194414301,"user":{"login":"oxtoacart","id":5000654,"avatar_url":"https://avatars.githubusercontent.com/u/5000654?v=3","gravatar_id":"","url":"https://api.github.com/users/oxtoacart","html_url":"https://github.com/oxtoacart","followers_url":"https://api.github.com/users/oxtoacart/followers","following_url":"https://api.github.com/users/oxtoacart/following{/other_user}","gists_url":"https://api.github.com/users/oxtoacart/gists{/gist_id}","starred_url":"https://api.github.com/users/oxtoacart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxtoacart/subscriptions","organizations_url":"https://api.github.com/users/oxtoacart/orgs","repos_url":"https://api.github.com/users/oxtoacart/repos","events_url":"https://api.github.com/users/oxtoacart/events{/privacy}","received_events_url":"https://api.github.com/users/oxtoacart/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T17:30:09Z","updated_at":"2016-03-09T17:30:09Z","body":"Thanks for the review @myleshorton.  FYI, we have to build the server with 1.5 right now because 1.6 introduced a change to the http package that breaks our Apache mimicry.  Specifically, it returns a 400 error if the request doesn't include a Host header, which is different behavior than Apache."}}