{"action":"created","issue":{"url":"https://api.github.com/repos/socketry/falcon/issues/29","repository_url":"https://api.github.com/repos/socketry/falcon","labels_url":"https://api.github.com/repos/socketry/falcon/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/socketry/falcon/issues/29/comments","events_url":"https://api.github.com/repos/socketry/falcon/issues/29/events","html_url":"https://github.com/socketry/falcon/issues/29","id":373725090,"node_id":"MDU6SXNzdWUzNzM3MjUwOTA=","number":29,"title":"Rails/Devise raises an invalid authenticity token on sign-in when running Falcon in HTTPS mode","user":{"login":"xtagon","id":47229,"node_id":"MDQ6VXNlcjQ3MjI5","avatar_url":"https://avatars0.githubusercontent.com/u/47229?v=4","gravatar_id":"","url":"https://api.github.com/users/xtagon","html_url":"https://github.com/xtagon","followers_url":"https://api.github.com/users/xtagon/followers","following_url":"https://api.github.com/users/xtagon/following{/other_user}","gists_url":"https://api.github.com/users/xtagon/gists{/gist_id}","starred_url":"https://api.github.com/users/xtagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtagon/subscriptions","organizations_url":"https://api.github.com/users/xtagon/orgs","repos_url":"https://api.github.com/users/xtagon/repos","events_url":"https://api.github.com/users/xtagon/events{/privacy}","received_events_url":"https://api.github.com/users/xtagon/received_events","type":"User","site_admin":false},"labels":[{"id":627037001,"node_id":"MDU6TGFiZWw2MjcwMzcwMDE=","url":"https://api.github.com/repos/socketry/falcon/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"ioquatix","id":30030,"node_id":"MDQ6VXNlcjMwMDMw","avatar_url":"https://avatars1.githubusercontent.com/u/30030?v=4","gravatar_id":"","url":"https://api.github.com/users/ioquatix","html_url":"https://github.com/ioquatix","followers_url":"https://api.github.com/users/ioquatix/followers","following_url":"https://api.github.com/users/ioquatix/following{/other_user}","gists_url":"https://api.github.com/users/ioquatix/gists{/gist_id}","starred_url":"https://api.github.com/users/ioquatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioquatix/subscriptions","organizations_url":"https://api.github.com/users/ioquatix/orgs","repos_url":"https://api.github.com/users/ioquatix/repos","events_url":"https://api.github.com/users/ioquatix/events{/privacy}","received_events_url":"https://api.github.com/users/ioquatix/received_events","type":"User","site_admin":false},"assignees":[{"login":"ioquatix","id":30030,"node_id":"MDQ6VXNlcjMwMDMw","avatar_url":"https://avatars1.githubusercontent.com/u/30030?v=4","gravatar_id":"","url":"https://api.github.com/users/ioquatix","html_url":"https://github.com/ioquatix","followers_url":"https://api.github.com/users/ioquatix/followers","following_url":"https://api.github.com/users/ioquatix/following{/other_user}","gists_url":"https://api.github.com/users/ioquatix/gists{/gist_id}","starred_url":"https://api.github.com/users/ioquatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioquatix/subscriptions","organizations_url":"https://api.github.com/users/ioquatix/orgs","repos_url":"https://api.github.com/users/ioquatix/repos","events_url":"https://api.github.com/users/ioquatix/events{/privacy}","received_events_url":"https://api.github.com/users/ioquatix/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/socketry/falcon/milestones/1","html_url":"https://github.com/socketry/falcon/milestone/1","labels_url":"https://api.github.com/repos/socketry/falcon/milestones/1/labels","id":4755796,"node_id":"MDk6TWlsZXN0b25lNDc1NTc5Ng==","number":1,"title":"v0.34.3","description":null,"creator":{"login":"ioquatix","id":30030,"node_id":"MDQ6VXNlcjMwMDMw","avatar_url":"https://avatars1.githubusercontent.com/u/30030?v=4","gravatar_id":"","url":"https://api.github.com/users/ioquatix","html_url":"https://github.com/ioquatix","followers_url":"https://api.github.com/users/ioquatix/followers","following_url":"https://api.github.com/users/ioquatix/following{/other_user}","gists_url":"https://api.github.com/users/ioquatix/gists{/gist_id}","starred_url":"https://api.github.com/users/ioquatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioquatix/subscriptions","organizations_url":"https://api.github.com/users/ioquatix/orgs","repos_url":"https://api.github.com/users/ioquatix/repos","events_url":"https://api.github.com/users/ioquatix/events{/privacy}","received_events_url":"https://api.github.com/users/ioquatix/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2019-10-15T23:40:55Z","updated_at":"2019-10-15T23:40:55Z","due_on":null,"closed_at":null},"comments":59,"created_at":"2018-10-25T00:16:58Z","updated_at":"2019-10-28T16:29:39Z","closed_at":"2019-10-15T23:40:43Z","author_association":"NONE","body":"Migrating from https://github.com/socketry/falcon/issues/24 becuase it's a different issue.\r\n\r\nWhen I run my Rails application with the default HTTPS binding, attempts to sign in using Devise raises the following error:\r\n\r\n```\r\nStarted POST \"/users/sign_in\" for 127.0.0.1 at 2018-10-24 17:14:29 -0700\r\nProcessing by Devise::SessionsController#create as HTML\r\n  Parameters: {\"utf8\"=>\"✓\", \"authenticity_token\"=>\"QazbNOYd9lDBoUmbHYZusTlYsHbWPyNAuIVnxOnCQWJevfvlvIRYnYXgSSfhYT2PQGf5TR7SPULEx8NgOY5I3A==\", \"user\"=>{\"email\"=>\"[FILTERED]\", \"password\"=>\"[FILTERED]\", \"remember_me\"=>\"1\"}, \"commit\"=>\"Sign In\"}\r\nCan't verify CSRF token authenticity.\r\nCompleted 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)\r\n\r\n\r\nNot notifying due to an invalid api_key\r\n\r\nActionController::InvalidAuthenticityToken - ActionController::InvalidAuthenticityToken:\r\n\r\nStarted POST \"/__better_errors/442776df455fb9ec/variables\" for 127.0.0.1 at 2018-10-24 17:14:30 -0700\r\nE, [2018-10-24T17:14:30.162837 #25710] ERROR -- #<Async::IO::SSLServer:0x00005570c92b0c98>: Cannot send headers in state: closed (HTTP::Protocol::ProtocolError)\r\n/home/xtagon/.asdf/installs/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/http-protocol-0.6.1/lib/http/protocol/http2/stream.rb:170:in `send_headers'\r\n/home/xtagon/.asdf/installs/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/async-http-0.34.4/lib/async/http/protocol/http2/request.rb:99:in `send_response'\r\n/home/xtagon/.asdf/installs/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/async-http-0.34.4/lib/async/http/protocol/http2/server.rb:69:in `each'\r\n/home/xtagon/.asdf/installs/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/async-http-0.34.4/lib/async/http/server.rb:49:in `accept'\r\n/home/xtagon/.asdf/installs/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/async-io-1.16.1/lib/async/io/socket.rb:62:in `block in accept_each'\r\n/home/xtagon/.asdf/installs/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/async-io-1.16.1/lib/async/io/ssl_socket.rb:124:in `block in accept'\r\n/home/xtagon/.asdf/installs/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/async-1.10.3/lib/async/task.rb:74:in `block in initialize'\r\n```\r\n\r\nThis only occurs if I'm using HTTPS with `falcon serve`, it does not occur when using HTTP with `falcon serve` nor when running in another server such as Puma. It also does not happen when running Falcon with `RACK_HANDLER=falcon rails server`.\r\n\r\nRails 5.1.6\r\n\r\nDevise 4.5.0\r\n\r\nFalcon 0.18.14"},"comment":{"url":"https://api.github.com/repos/socketry/falcon/issues/comments/547030304","html_url":"https://github.com/socketry/falcon/issues/29#issuecomment-547030304","issue_url":"https://api.github.com/repos/socketry/falcon/issues/29","id":547030304,"node_id":"MDEyOklzc3VlQ29tbWVudDU0NzAzMDMwNA==","user":{"login":"xtagon","id":47229,"node_id":"MDQ6VXNlcjQ3MjI5","avatar_url":"https://avatars0.githubusercontent.com/u/47229?v=4","gravatar_id":"","url":"https://api.github.com/users/xtagon","html_url":"https://github.com/xtagon","followers_url":"https://api.github.com/users/xtagon/followers","following_url":"https://api.github.com/users/xtagon/following{/other_user}","gists_url":"https://api.github.com/users/xtagon/gists{/gist_id}","starred_url":"https://api.github.com/users/xtagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtagon/subscriptions","organizations_url":"https://api.github.com/users/xtagon/orgs","repos_url":"https://api.github.com/users/xtagon/repos","events_url":"https://api.github.com/users/xtagon/events{/privacy}","received_events_url":"https://api.github.com/users/xtagon/received_events","type":"User","site_admin":false},"created_at":"2019-10-28T16:29:39Z","updated_at":"2019-10-28T16:29:39Z","author_association":"NONE","body":"@ioquatix I plan to test it this coming weekend. 👍 "}}
{"actor":{"display_login":"xtagon"}}