{"action":"created","issue":{"url":"https://api.github.com/repos/nlsdfnbch/btfxwss/issues/19","repository_url":"https://api.github.com/repos/nlsdfnbch/btfxwss","labels_url":"https://api.github.com/repos/nlsdfnbch/btfxwss/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/nlsdfnbch/btfxwss/issues/19/comments","events_url":"https://api.github.com/repos/nlsdfnbch/btfxwss/issues/19/events","html_url":"https://github.com/nlsdfnbch/btfxwss/issues/19","id":248165210,"number":19,"title":"Error \"cafile, capath and cadata cannot be all omitted\"","user":{"login":"rafaelcapucho","id":163367,"avatar_url":"https://avatars0.githubusercontent.com/u/163367?v=4","gravatar_id":"","url":"https://api.github.com/users/rafaelcapucho","html_url":"https://github.com/rafaelcapucho","followers_url":"https://api.github.com/users/rafaelcapucho/followers","following_url":"https://api.github.com/users/rafaelcapucho/following{/other_user}","gists_url":"https://api.github.com/users/rafaelcapucho/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelcapucho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelcapucho/subscriptions","organizations_url":"https://api.github.com/users/rafaelcapucho/orgs","repos_url":"https://api.github.com/users/rafaelcapucho/repos","events_url":"https://api.github.com/users/rafaelcapucho/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelcapucho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-05T06:26:00Z","updated_at":"2017-08-05T08:55:54Z","closed_at":null,"body":"When running this:\r\n\r\n```\r\nimport logging\r\nimport sys\r\nimport time\r\n\r\nfrom btfxwss import BtfxWss\r\n\r\nlogging.basicConfig(level=logging.DEBUG, filename='test.log')\r\nlog = logging.getLogger(__name__)\r\n\r\nfh = logging.FileHandler('test.log')\r\nfh.setLevel(logging.DEBUG)\r\nsh = logging.StreamHandler(sys.stdout)\r\nsh.setLevel(logging.DEBUG)\r\n\r\nlog.addHandler(sh)\r\nlog.addHandler(fh)\r\n\r\napikey = '....'\r\napisecret = '....'\r\n\r\nwss = BtfxWss(key=apikey, secret=apisecret)\r\nwss.start()\r\ntime.sleep(2)  # give the client some prep time to set itself up.\r\n\r\n# wss.authenticate()\r\n\r\n# Subscribe to some channels\r\nwss.ticker('BTCUSD')\r\nwss.order_book('BTCUSD')\r\n\r\n# Send a ping - if this returns silently, everything's fine.\r\nwss.ping()\r\n\r\n# Do something else\r\nt = time.time()\r\nwhile time.time() - t < 10:\r\n    pass\r\n\r\nprint(wss.tickers['BTCUSD'])\r\nprint(wss.books['BTCUSD'].bids())  # prints all current bids for the BTCUSD order book\r\nprint(wss.books['BTCUSD'].asks())  # prints all current asks for the BTCUSD order book\r\n```\r\n\r\nI got these:\r\n```\r\n/usr/bin/python3.6 /home/kepler/Workspace/FinexMonitor/main.py\r\nTraceback (most recent call last):\r\n  File \"/home/kepler/Workspace/FinexMonitor/main.py\", line 29, in <module>\r\n    wss.ticker('BTCUSD')\r\nAttributeError: 'BtfxWss' object has no attribute 'ticker'\r\n\r\nProcess finished with exit code 1\r\n```\r\n\r\nLog:\r\n```\r\nINFO:btfxwss.connection:Connection Error - cafile, capath and cadata cannot be all omitted\r\nINFO:btfxwss.connection:Connection closed\r\nINFO:btfxwss.connection:Attempting to connect again in 10 seconds.\r\n```\r\n\r\nmight it be related to https://github.com/websocket-client/websocket-client/issues/227 ?\r\n\r\nThx."},"comment":{"url":"https://api.github.com/repos/nlsdfnbch/btfxwss/issues/comments/320431732","html_url":"https://github.com/nlsdfnbch/btfxwss/issues/19#issuecomment-320431732","issue_url":"https://api.github.com/repos/nlsdfnbch/btfxwss/issues/19","id":320431732,"user":{"login":"nlsdfnbch","id":12763351,"avatar_url":"https://avatars0.githubusercontent.com/u/12763351?v=4","gravatar_id":"","url":"https://api.github.com/users/nlsdfnbch","html_url":"https://github.com/nlsdfnbch","followers_url":"https://api.github.com/users/nlsdfnbch/followers","following_url":"https://api.github.com/users/nlsdfnbch/following{/other_user}","gists_url":"https://api.github.com/users/nlsdfnbch/gists{/gist_id}","starred_url":"https://api.github.com/users/nlsdfnbch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlsdfnbch/subscriptions","organizations_url":"https://api.github.com/users/nlsdfnbch/orgs","repos_url":"https://api.github.com/users/nlsdfnbch/repos","events_url":"https://api.github.com/users/nlsdfnbch/events{/privacy}","received_events_url":"https://api.github.com/users/nlsdfnbch/received_events","type":"User","site_admin":false},"created_at":"2017-08-05T08:55:54Z","updated_at":"2017-08-05T08:55:54Z","body":"Also, could you verify that this doesn't happen with the `dev` branch version ?"}}
{"actor":{"display_login":"nlsdfnbch"}}