{"action":"opened","issue":{"url":"https://api.github.com/repos/shidenggui/easytrader/issues/81","repository_url":"https://api.github.com/repos/shidenggui/easytrader","labels_url":"https://api.github.com/repos/shidenggui/easytrader/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/shidenggui/easytrader/issues/81/comments","events_url":"https://api.github.com/repos/shidenggui/easytrader/issues/81/events","html_url":"https://github.com/shidenggui/easytrader/issues/81","id":165508985,"number":81,"title":"使用雪球模拟交易，查询资金或持仓时提示错误","user":{"login":"yoyobbs","id":19606678,"avatar_url":"https://avatars.githubusercontent.com/u/19606678?v=3","gravatar_id":"","url":"https://api.github.com/users/yoyobbs","html_url":"https://github.com/yoyobbs","followers_url":"https://api.github.com/users/yoyobbs/followers","following_url":"https://api.github.com/users/yoyobbs/following{/other_user}","gists_url":"https://api.github.com/users/yoyobbs/gists{/gist_id}","starred_url":"https://api.github.com/users/yoyobbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoyobbs/subscriptions","organizations_url":"https://api.github.com/users/yoyobbs/orgs","repos_url":"https://api.github.com/users/yoyobbs/repos","events_url":"https://api.github.com/users/yoyobbs/events{/privacy}","received_events_url":"https://api.github.com/users/yoyobbs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-14T08:45:04Z","updated_at":"2016-07-14T08:45:04Z","closed_at":null,"body":"百度了无数次解决无果，期待作者您能知道是什么问题？\r\n我咨询了群内一些成功的朋友，他们都可以正常查询，而我在win与ubuntu下均提示这个错误。\r\n\r\n[2016-07-14 16:30:29.654315] DEBUG: xqtrader.py: login status: SUCCESS\r\nTraceback (most recent call last):\r\n  File \"F:\\Program Files\\JetBrains\\PyCharm 5.0.3\\helpers\\pycharm\\utrunner.py\", line 129, in <module>\r\n    module = loadSource(a[0])\r\n  File \"F:\\Program Files\\JetBrains\\PyCharm 5.0.3\\helpers\\pycharm\\utrunner.py\", line 41, in loadSource\r\n    module = imp.load_source(moduleName, fileName)\r\n  File \"E:\\Python35\\lib\\imp.py\", line 172, in load_source\r\n    module = _load(spec)\r\n  File \"<frozen importlib._bootstrap>\", line 693, in _load\r\n  File \"<frozen importlib._bootstrap>\", line 673, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 662, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 222, in _call_with_frames_removed\r\n  File \"F:\\py\\easytrader\\test.py\", line 9, in <module>\r\n    user.balance\r\n  File \"F:\\py\\easytrader\\easytrader\\webtrader.py\", line 113, in balance\r\n    return self.get_balance()\r\n  File \"F:\\py\\easytrader\\easytrader\\xqtrader.py\", line 161, in get_balance\r\n    portfolio_info = self.__get_portfolio_info(portfolio_code)  # 组合信息\r\n  File \"F:\\py\\easytrader\\easytrader\\xqtrader.py\", line 148, in __get_portfolio_info\r\n    html = self.__get_html(url)\r\n  File \"F:\\py\\easytrader\\easytrader\\xqtrader.py\", line 114, in __get_html\r\n    resp = urllib.request.urlopen(req)\r\n  File \"E:\\Python35\\lib\\urllib\\request.py\", line 162, in urlopen\r\n    return opener.open(url, data, timeout)\r\n  File \"E:\\Python35\\lib\\urllib\\request.py\", line 465, in open\r\n    response = self._open(req, data)\r\n  File \"E:\\Python35\\lib\\urllib\\request.py\", line 483, in _open\r\n    '_open', req)\r\n  File \"E:\\Python35\\lib\\urllib\\request.py\", line 443, in _call_chain\r\n    result = func(*args)\r\n  File \"E:\\Python35\\lib\\urllib\\request.py\", line 1283, in https_open\r\n    context=self._context, check_hostname=self._check_hostname)\r\n  File \"E:\\Python35\\lib\\urllib\\request.py\", line 1240, in do_open\r\n    h.request(req.get_method(), req.selector, req.data, headers)\r\n  File \"E:\\Python35\\lib\\http\\client.py\", line 1083, in request\r\n    self._send_request(method, url, body, headers)\r\n  File \"E:\\Python35\\lib\\http\\client.py\", line 1118, in _send_request\r\n    self.putrequest(method, url, **skips)\r\n  File \"E:\\Python35\\lib\\http\\client.py\", line 960, in putrequest\r\n    self._output(request.encode('ascii'))\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 7-12: ordinal not in range(128)"}}
{"actor":{"display_login":"yoyobbs"}}