{"action":"created","issue":{"url":"https://api.github.com/repos/CodementorIO/rest-firebase/issues/11","repository_url":"https://api.github.com/repos/CodementorIO/rest-firebase","labels_url":"https://api.github.com/repos/CodementorIO/rest-firebase/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/CodementorIO/rest-firebase/issues/11/comments","events_url":"https://api.github.com/repos/CodementorIO/rest-firebase/issues/11/events","html_url":"https://github.com/CodementorIO/rest-firebase/issues/11","id":150894393,"number":11,"title":"Can't connect (??)","user":{"login":"johncox00","id":2042271,"avatar_url":"https://avatars.githubusercontent.com/u/2042271?v=3","gravatar_id":"","url":"https://api.github.com/users/johncox00","html_url":"https://github.com/johncox00","followers_url":"https://api.github.com/users/johncox00/followers","following_url":"https://api.github.com/users/johncox00/following{/other_user}","gists_url":"https://api.github.com/users/johncox00/gists{/gist_id}","starred_url":"https://api.github.com/users/johncox00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johncox00/subscriptions","organizations_url":"https://api.github.com/users/johncox00/orgs","repos_url":"https://api.github.com/users/johncox00/repos","events_url":"https://api.github.com/users/johncox00/events{/privacy}","received_events_url":"https://api.github.com/users/johncox00/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-25T15:11:59Z","updated_at":"2016-04-25T16:03:41Z","closed_at":"2016-04-25T16:00:29Z","body":"I have an initializer:\r\n\r\n```\r\n$firebase = RestFirebase.new(site:             FB_URL,\r\n                             secret:           FB_SECRET,\r\n                             log_method:       method(:puts),\r\n                             error_callback:   method(:p),\r\n                             timeout:          10,\r\n                             max_retries:      3,\r\n                             retry_exceptions: [IOError, SystemCallError, Timeout::Error],\r\n                             auth_ttl:         82800)\r\n\r\n es = $firebase.event_source('threads')\r\n es.onopen   { |sock| p sock } # Called when connected\r\n es.onmessage{ |event, data, sock| p event, data } # Called for each message\r\n es.onerror  { |error, sock| p \"Streaming error: #{error}\" } # Called whenever there's an error\r\n es.onreconnect{ |error, sock| p error; true }\r\n```\r\n\r\nWhen runing `rails s` I get the following output:\r\n\r\n```\r\n=> Booting WEBrick\r\n=> Rails 4.2.6 application starting in development on http://localhost:3000\r\n=> Run `rails server -h` for more startup options\r\n=> Ctrl-C to shutdown server\r\nError getting IP address: Something went wrong running an SSH command!\r\ncommand : ip addr show dev eth1\r\nerr     : exit status 255\r\noutput  :\r\n[2016-04-25 09:07:49] INFO  WEBrick 1.3.1\r\n[2016-04-25 09:07:49] INFO  ruby 2.2.2 (2015-04-13) [x86_64-darwin14]\r\n[2016-04-25 09:07:49] INFO  WEBrick::HTTPServer#start: pid=97403 port=3000\r\n```\r\n\r\nAny insight? "},"comment":{"url":"https://api.github.com/repos/CodementorIO/rest-firebase/issues/comments/214418886","html_url":"https://github.com/CodementorIO/rest-firebase/issues/11#issuecomment-214418886","issue_url":"https://api.github.com/repos/CodementorIO/rest-firebase/issues/11","id":214418886,"user":{"login":"godfat","id":10416,"avatar_url":"https://avatars.githubusercontent.com/u/10416?v=3","gravatar_id":"","url":"https://api.github.com/users/godfat","html_url":"https://github.com/godfat","followers_url":"https://api.github.com/users/godfat/followers","following_url":"https://api.github.com/users/godfat/following{/other_user}","gists_url":"https://api.github.com/users/godfat/gists{/gist_id}","starred_url":"https://api.github.com/users/godfat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godfat/subscriptions","organizations_url":"https://api.github.com/users/godfat/orgs","repos_url":"https://api.github.com/users/godfat/repos","events_url":"https://api.github.com/users/godfat/events{/privacy}","received_events_url":"https://api.github.com/users/godfat/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T16:03:41Z","updated_at":"2016-04-25T16:03:41Z","body":"No problems. Good luck!"}}