{"action":"created","issue":{"url":"https://api.github.com/repos/vincenthz/hs-tls/issues/124","labels_url":"https://api.github.com/repos/vincenthz/hs-tls/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/vincenthz/hs-tls/issues/124/comments","events_url":"https://api.github.com/repos/vincenthz/hs-tls/issues/124/events","html_url":"https://github.com/vincenthz/hs-tls/issues/124","id":114670362,"number":124,"title":"tls-retrievecertificate: HandshakeFailed (Error_Packet_unexpected \"Alert [(AlertLevel_Fatal,BadRecordMac)]\" \" expected: change cipher\")","user":{"login":"glasserc","id":17006,"avatar_url":"https://avatars.githubusercontent.com/u/17006?v=3","gravatar_id":"","url":"https://api.github.com/users/glasserc","html_url":"https://github.com/glasserc","followers_url":"https://api.github.com/users/glasserc/followers","following_url":"https://api.github.com/users/glasserc/following{/other_user}","gists_url":"https://api.github.com/users/glasserc/gists{/gist_id}","starred_url":"https://api.github.com/users/glasserc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glasserc/subscriptions","organizations_url":"https://api.github.com/users/glasserc/orgs","repos_url":"https://api.github.com/users/glasserc/repos","events_url":"https://api.github.com/users/glasserc/events{/privacy}","received_events_url":"https://api.github.com/users/glasserc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vincenthz/hs-tls/labels/Bug","name":"Bug","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-02T19:47:21Z","updated_at":"2015-12-09T00:56:59Z","closed_at":null,"body":"Using a command like `for x in `seq 1 1000`; do .cabal-sandbox/bin/tls-retrievecertificate  --verify --chain www.google.com 443 > google-$x.txt; done`, I've reliably reproduced the above error message (it's showed up between one and four times per thousand). I can reproduce this on hosts at www.google.com and api.twitter.com with approximately the same level of frequency. It seems to happen on my home, work, and cell phone Internet connections. I've seen this error on two different machines, which rules out hardware issues."},"comment":{"url":"https://api.github.com/repos/vincenthz/hs-tls/issues/comments/163073041","html_url":"https://github.com/vincenthz/hs-tls/issues/124#issuecomment-163073041","issue_url":"https://api.github.com/repos/vincenthz/hs-tls/issues/124","id":163073041,"user":{"login":"kazu-yamamoto","id":165387,"avatar_url":"https://avatars.githubusercontent.com/u/165387?v=3","gravatar_id":"","url":"https://api.github.com/users/kazu-yamamoto","html_url":"https://github.com/kazu-yamamoto","followers_url":"https://api.github.com/users/kazu-yamamoto/followers","following_url":"https://api.github.com/users/kazu-yamamoto/following{/other_user}","gists_url":"https://api.github.com/users/kazu-yamamoto/gists{/gist_id}","starred_url":"https://api.github.com/users/kazu-yamamoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazu-yamamoto/subscriptions","organizations_url":"https://api.github.com/users/kazu-yamamoto/orgs","repos_url":"https://api.github.com/users/kazu-yamamoto/repos","events_url":"https://api.github.com/users/kazu-yamamoto/events{/privacy}","received_events_url":"https://api.github.com/users/kazu-yamamoto/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T00:56:59Z","updated_at":"2015-12-09T00:56:59Z","body":"@vincenthz If you kindly suggest how to debug, I will try."}}