{"action":"created","issue":{"url":"https://api.github.com/repos/sm00th/bitlbee-discord/issues/21","repository_url":"https://api.github.com/repos/sm00th/bitlbee-discord","labels_url":"https://api.github.com/repos/sm00th/bitlbee-discord/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/sm00th/bitlbee-discord/issues/21/comments","events_url":"https://api.github.com/repos/sm00th/bitlbee-discord/issues/21/events","html_url":"https://github.com/sm00th/bitlbee-discord/issues/21","id":141026458,"number":21,"title":"Connection timeout on account on","user":{"login":"bleader","id":703740,"avatar_url":"https://avatars.githubusercontent.com/u/703740?v=3","gravatar_id":"","url":"https://api.github.com/users/bleader","html_url":"https://github.com/bleader","followers_url":"https://api.github.com/users/bleader/followers","following_url":"https://api.github.com/users/bleader/following{/other_user}","gists_url":"https://api.github.com/users/bleader/gists{/gist_id}","starred_url":"https://api.github.com/users/bleader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleader/subscriptions","organizations_url":"https://api.github.com/users/bleader/orgs","repos_url":"https://api.github.com/users/bleader/repos","events_url":"https://api.github.com/users/bleader/events{/privacy}","received_events_url":"https://api.github.com/users/bleader/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-15T16:26:01Z","updated_at":"2016-03-15T17:48:15Z","closed_at":null,"body":"After adding the account, trying to set it on:\r\n\r\n    16:14:34 <@bleader> acc discord on\r\n    16:16:34 <@root> discord - Login error: Connection timeout\r\n    16:16:34 <@root> discord - Logging in: Signing off..\r\n    16:16:34 <@root> discord - Logging in: Reconnecting in 135 seconds..\r\n\r\nNot sure if this is related to bitlbee-discord for real, but I actually have no clue how to debug this, so I'm filing this issue.\r\n\r\nIt never worked for me yet, I tried to change password in case something was wrong with auth, but in this case the message is different and instant.\r\n\r\nThis is on a FreeBSD 9.1 with libwebsockets 1.6.3 manually compiled, and bitlbee 3.4.1 and glib 2.34.\r\n\r\nAny hint on how to try to debug this? I'm guessing this isn't really a code issue, but likely some kind of odd combination of app/libs/os."},"comment":{"url":"https://api.github.com/repos/sm00th/bitlbee-discord/issues/comments/196945011","html_url":"https://github.com/sm00th/bitlbee-discord/issues/21#issuecomment-196945011","issue_url":"https://api.github.com/repos/sm00th/bitlbee-discord/issues/21","id":196945011,"user":{"login":"sm00th","id":194702,"avatar_url":"https://avatars.githubusercontent.com/u/194702?v=3","gravatar_id":"","url":"https://api.github.com/users/sm00th","html_url":"https://github.com/sm00th","followers_url":"https://api.github.com/users/sm00th/followers","following_url":"https://api.github.com/users/sm00th/following{/other_user}","gists_url":"https://api.github.com/users/sm00th/gists{/gist_id}","starred_url":"https://api.github.com/users/sm00th/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sm00th/subscriptions","organizations_url":"https://api.github.com/users/sm00th/orgs","repos_url":"https://api.github.com/users/sm00th/repos","events_url":"https://api.github.com/users/sm00th/events{/privacy}","received_events_url":"https://api.github.com/users/sm00th/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T17:48:15Z","updated_at":"2016-03-15T17:48:15Z","body":"Do you know if discord's webapp work from that machine? If you don't have a browser on that host you can check if discordapp.com and their ws gateway are available. You should get something like this:\r\n```\r\n$ curl -L http://discordapp.com/api/gateway\r\n{\"message\": \"\"}\r\n\r\n$ curl -i -H 'Upgrade: websocket' https://gateway-1.discord.gg/1\r\nHTTP/1.1 400 Bad Request\r\nconnection: close\r\nserver: Cowboy\r\ndate: Tue, 15 Mar 2016 17:39:51 GMT\r\ncontent-length: 0\r\n```\r\n\r\nIf all looks good and it is not a network issue you can try running bitlbee in gdb and getting a backtrace of whats going on in the middle of those 2 minutes, or I can come up with a small debug patch for you to try."}}