{"action":"opened","issue":{"url":"https://api.github.com/repos/faye/faye/issues/502","repository_url":"https://api.github.com/repos/faye/faye","labels_url":"https://api.github.com/repos/faye/faye/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/faye/faye/issues/502/comments","events_url":"https://api.github.com/repos/faye/faye/issues/502/events","html_url":"https://github.com/faye/faye/issues/502","id":351357860,"node_id":"MDU6SXNzdWUzNTEzNTc4NjA=","number":502,"title":"Faye (1.2.4) does not work with jruby-9.2.0.0","user":{"login":"CodeByMomo","id":7142405,"node_id":"MDQ6VXNlcjcxNDI0MDU=","avatar_url":"https://avatars0.githubusercontent.com/u/7142405?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeByMomo","html_url":"https://github.com/CodeByMomo","followers_url":"https://api.github.com/users/CodeByMomo/followers","following_url":"https://api.github.com/users/CodeByMomo/following{/other_user}","gists_url":"https://api.github.com/users/CodeByMomo/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeByMomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeByMomo/subscriptions","organizations_url":"https://api.github.com/users/CodeByMomo/orgs","repos_url":"https://api.github.com/users/CodeByMomo/repos","events_url":"https://api.github.com/users/CodeByMomo/events{/privacy}","received_events_url":"https://api.github.com/users/CodeByMomo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-16T20:32:31Z","updated_at":"2018-08-16T20:32:31Z","closed_at":null,"author_association":"NONE","body":"I've tried using the following simple ruby code on jruby-9.2.0.0 to authenticate with salesforce via Restforce(3.0.1) gem then try to subscribe to a push topic and it doesn't work and I get an error. See the steps to reproduce below with my expected behavior and actual behavior.\r\n\r\nNote if needed I can add steps for the \"Streaming API Developer Guide\" part. Or maybe change to use another streaming api like twitter to make the repo more easier.\r\n\r\n**Steps to reproduce:**\r\n1) Use jruby-9.2.0.0 \r\n2) Install Restforce(3.0.1), faye (1.2.4), & pry (0.11.3 java)\r\n3) Follow [Streaming API Developer Guide - Quick Start Using Workbench](https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/quick_start_workbench.htm)\r\n4) Use the follow ruby code in pry\r\n```\r\nrequire 'faye'\r\nrequire 'eventmachine'\r\nrequire 'restforce'\r\n\r\nurl = \"https://na31.salesforce.com/cometd/36.0\"\r\n\r\nrestforce = Restforce.new(\r\n                  api_version: '36.0',\r\n                  username: 'username,\r\n                  password: 'password',\r\n                  client_id: 'clientid',\r\n                  client_secret: 'clientsecret')\r\n\r\nauthorization_hash = restforce.authenticate!\r\n\r\nclient = Faye::Client.new(url)\r\nclient.set_header('Authorization', \"OAuth #{authorization_hash.access_token}\")\r\n\r\nEM.run {\r\n\tclient.subscribe('/topic/AllAccounts') do |message|\r\n\t\tputs message\r\n\tend\r\n}\r\n```\r\n5) Trigger an action to trigger the push notification \r\n\r\n**Expected:**\r\n{\"event\"=>{\"createdDate\"=>\"2018-08-16T20:27:28.818Z\", \"replayId\"=>41, \"type\"=>\"created\"}, \"sobject\"=>{\"Id\"=>\"0013700000ZQWB9AAP\", \"Name\"=>\"asdf\"}}\r\n\r\n**Actual:**\r\nArgumentError: Invalid header value type\r\nfrom org/ruby_http_parser/RubyHttpParser.java:478:in `header_value_type='\r\n\r\n**Notes:**\r\nIf I repeat the steps above but use ruby 2.5.1 and it works fine. Would be happy to debug this but I'm still a novice for ruby. Also not sure if this is the proper place to put this bug. I'm also a novice to github. "}}
{"actor":{"display_login":"CodeByMomo"}}