{"action":"created","issue":{"url":"https://api.github.com/repos/carpedm20/LINE/issues/25","labels_url":"https://api.github.com/repos/carpedm20/LINE/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/carpedm20/LINE/issues/25/comments","events_url":"https://api.github.com/repos/carpedm20/LINE/issues/25/events","html_url":"https://github.com/carpedm20/LINE/issues/25","id":65756087,"number":25,"title":"AttributeError: 'NoneType' object has no attribute 'read'","user":{"login":"anusoft","id":201861,"avatar_url":"https://avatars.githubusercontent.com/u/201861?v=3","gravatar_id":"","url":"https://api.github.com/users/anusoft","html_url":"https://github.com/anusoft","followers_url":"https://api.github.com/users/anusoft/followers","following_url":"https://api.github.com/users/anusoft/following{/other_user}","gists_url":"https://api.github.com/users/anusoft/gists{/gist_id}","starred_url":"https://api.github.com/users/anusoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anusoft/subscriptions","organizations_url":"https://api.github.com/users/anusoft/orgs","repos_url":"https://api.github.com/users/anusoft/repos","events_url":"https://api.github.com/users/anusoft/events{/privacy}","received_events_url":"https://api.github.com/users/anusoft/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/carpedm20/LINE/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-01T19:03:20Z","updated_at":"2016-01-22T03:19:14Z","closed_at":"2015-07-13T17:48:57Z","body":"Traceback (most recent call last):\r\n  File \"echobot.py\", line 34, in <module>\r\n    for op in client.longPoll():\r\n  File \"/usr/local/lib/python2.7/dist-packages/line-0.4.1-py2.7.egg/line/client.py\", line 504, in longPoll\r\n    operations = self._fetchOperations(self.revision, count)\r\n  File \"/usr/local/lib/python2.7/dist-packages/line-0.4.1-py2.7.egg/line/api.py\", line 308, in _fetchOperations\r\n    return self._client.fetchOperations(revision, count)\r\n  File \"/usr/local/lib/python2.7/dist-packages/curve-0.1.0-py2.7.egg/curve/CurveThrift.py\", line 483, in fetchOperations\r\n    return self.recv_fetchOperations()\r\n  File \"/usr/local/lib/python2.7/dist-packages/curve-0.1.0-py2.7.egg/curve/CurveThrift.py\", line 495, in recv_fetchOperations\r\n    (fname, mtype, rseqid) = self._iprot.readMessageBegin()\r\n  File \"/usr/local/lib/python2.7/dist-packages/thrift-0.9.1-py2.7.egg/thrift/protocol/TCompactProtocol.py\", line 308, in readMessageBegin\r\n    proto_id = self.__readUByte()\r\n  File \"/usr/local/lib/python2.7/dist-packages/thrift-0.9.1-py2.7.egg/thrift/protocol/TCompactProtocol.py\", line 287, in __readUByte\r\n    result, = unpack('!B', self.trans.readAll(1))\r\n  File \"/usr/local/lib/python2.7/dist-packages/thrift-0.9.1-py2.7.egg/thrift/transport/TTransport.py\", line 58, in readAll\r\n    chunk = self.read(sz - have)\r\n  File \"/usr/local/lib/python2.7/dist-packages/thrift-0.9.1-py2.7.egg/thrift/transport/THttpClient.py\", line 97, in read\r\n    return self.__http.file.read(sz)\r\nAttributeError: 'NoneType' object has no attribute 'read'\r\n\r\n\r\nLine 34 echobot.py is\r\n\r\n```\r\nwhile True:\r\n    op_list = []\r\n\r\n>>>    for op in client.longPoll():\r\n        op_list.append(op)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/carpedm20/LINE/issues/comments/173790959","html_url":"https://github.com/carpedm20/LINE/issues/25#issuecomment-173790959","issue_url":"https://api.github.com/repos/carpedm20/LINE/issues/25","id":173790959,"user":{"login":"imetanon","id":5594317,"avatar_url":"https://avatars.githubusercontent.com/u/5594317?v=3","gravatar_id":"","url":"https://api.github.com/users/imetanon","html_url":"https://github.com/imetanon","followers_url":"https://api.github.com/users/imetanon/followers","following_url":"https://api.github.com/users/imetanon/following{/other_user}","gists_url":"https://api.github.com/users/imetanon/gists{/gist_id}","starred_url":"https://api.github.com/users/imetanon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imetanon/subscriptions","organizations_url":"https://api.github.com/users/imetanon/orgs","repos_url":"https://api.github.com/users/imetanon/repos","events_url":"https://api.github.com/users/imetanon/events{/privacy}","received_events_url":"https://api.github.com/users/imetanon/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T03:19:14Z","updated_at":"2016-01-22T03:19:14Z","body":"@anusoft สรุปพี่แก้ปัญหา\r\nFile \"/usr/local/lib/python2.7/dist-packages/thrift-0.9.1-py2.7.egg/thrift/transport/THttpClient.py\", line 97, in read\r\nreturn self.__http.file.read(sz)\r\nAttributeError: 'NoneType' object has no attribute 'read'\r\nได้ไหมครับ แล้วใช้วิธีไหน"}}