{"action":"opened","issue":{"url":"https://api.github.com/repos/vapor/vapor/issues/1693","repository_url":"https://api.github.com/repos/vapor/vapor","labels_url":"https://api.github.com/repos/vapor/vapor/issues/1693/labels{/name}","comments_url":"https://api.github.com/repos/vapor/vapor/issues/1693/comments","events_url":"https://api.github.com/repos/vapor/vapor/issues/1693/events","html_url":"https://github.com/vapor/vapor/issues/1693","id":325334223,"number":1693,"title":"Request is returning failed operation: connection was cleanly shut down with a close_notify alert","user":{"login":"tomwildcat9","id":2172843,"avatar_url":"https://avatars1.githubusercontent.com/u/2172843?v=4","gravatar_id":"","url":"https://api.github.com/users/tomwildcat9","html_url":"https://github.com/tomwildcat9","followers_url":"https://api.github.com/users/tomwildcat9/followers","following_url":"https://api.github.com/users/tomwildcat9/following{/other_user}","gists_url":"https://api.github.com/users/tomwildcat9/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwildcat9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwildcat9/subscriptions","organizations_url":"https://api.github.com/users/tomwildcat9/orgs","repos_url":"https://api.github.com/users/tomwildcat9/repos","events_url":"https://api.github.com/users/tomwildcat9/events{/privacy}","received_events_url":"https://api.github.com/users/tomwildcat9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-22T14:59:29Z","updated_at":"2018-05-22T14:59:29Z","closed_at":null,"author_association":"NONE","body":"Making the following request:\r\n\r\n```swift\r\nfunc refreshPingboardToken(on req: Request) throws -> Future<PingboardToken> {\r\n    let pingboardURL = \"https://app.pingboard.com/oauth/token?grant_type=client_credentials\"\r\n    let client = try req.make(Client.self)\r\n\r\n    return client.post(pingboardURL) { req in\r\n        try req.content.encode(ClientKeys(client_id: \"my_id\", client_secret: \"my_secret\"))\r\n        }.flatMap { res in\r\n            return try res.content.decode(PingboardTokenData.self)\r\n        }.flatMap { data in\r\n            let pingboardToken = PingboardToken(token: data.access_token, expires: Date(timeIntervalSince1970: (data.created_at + data.expires_in)))\r\n            return pingboardToken.save(on: req)\r\n    }\r\n}\r\n```\r\n\r\nThe response is still returned, just seeing these errors in the console:\r\n\r\n2018-05-22 07:47:40.411686-0700 Run[98777:34344285] [BoringSSL] Function boringssl_session_errorlog: line 2881 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert\r\n2018-05-22 07:47:40.411832-0700 Run[98777:34344285] [BoringSSL] Function boringssl_session_errorlog: line 2881 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert\r\n2018-05-22 07:47:40.412047-0700 Run[98777:34344285] TIC Read Status [1:0x1026037b0]: 1:57\r\n2018-05-22 07:47:40.412203-0700 Run[98777:34344285] [BoringSSL] Function boringssl_session_errorlog: line 2881 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert\r\n2018-05-22 07:47:40.412220-0700 Run[98777:34344285] [BoringSSL] Function boringssl_session_errorlog: line 2881 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert\r\n\r\n### Environment\r\n\r\nVapor Toolbox: 3.1.7\r\nVapor Framework: 3.0.3\r\nmacOS: 10.13.4\r\n"}}
{"actor":{"display_login":"tomwildcat9"}}