突然的yesod tls异常,DecodeError

时间:2016-08-24 02:02:13

标签: haskell google-oauth yesod keter

在我的Yesod应用程序中尝试使用gmail身份验证(Yesod.Auth.GoogleEmail2)时,我突然遇到以下错误:

FailedConnectionException2 "www.googleapis.com" 443 True sendBuf: resource vanished (Broken pipe)

TlsExceptionHostPort (HandshakeFailed (Error_Packet_unexpected "Alert [(AlertLevel_Fatal,DecodeError)]" " expected: change cipher")) "www.googleapis.com" 443

第二个错误更常见。它仍然可以登录 - 在错误发出后重新加载

StatusCodeException (Status {statusCode = 400, statusMessage = "Bad Request"}) [("Content-Type","application/json; charset=utf-8"),("Cache-Control","no-cache, no-store, max-age=0, must-revalidate"),("Pragma","no-cache"),("Expires","Mon, 01 Jan 1990 00:00:00 GMT"),("Date","Wed, 24 Aug 2016 01:13:02 GMT"),("Content-Encoding","gzip"),("X-Content-Type-Options","nosniff"),("X-Frame-Options","SAMEORIGIN"),("X-XSS-Protection","1; mode=block"),("Server","GSE"),("Alternate-Protocol","443:quic"),("Alt-Svc","quic=\":443\"; ma=2592000; v=\"35,34,33,32,31,30\""),("Transfer-Encoding","chunked"),("X-Response-Body-Start","{\n  \"error\" : \"invalid_grant\",\n  \"error_description\" : \"Code was already redeemed.\"\n}"),("X-Request-URL","POST https://accounts.google.com:443/o/oauth2/token")] (CJ {expose = []})

并在收到该消息后返回认证路线。

我建立在Yesod搭建的网站上,据我所知,自从这个问题开始出现之前,Foundation.hs或Application.hs没有任何变化。该应用程序正在与keter一起部署,并在堆栈lts-6.12

中编译

双重问题:原因是什么,解决方法是什么?

1 个答案:

答案 0 :(得分:-2)

我要达到lts-6.28才能正常工作。