-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NoneType' object has no attribute 'read' #25
Comments
Is this a frequent issue or rare problem? |
It rarely happened, only happened for few times |
It happen when requests send too much frequency then server will block for a while (3-5 min, sometimes 30 mins, sometimes 2 days) |
@shinznatkid Thanks for suggestion.
Will report if there's less ban, thank you again. |
@shinznatkid ขอบคุณครับ ใช้งานได้แล้ว สงสัยบอทจะอยู่ใกล้ๆกันนี่ล่ะครับ... :) @shinznatkid 's solution seem working well, no ban up until now. This is THttpClient.py that support keep-alive:
|
@anusoft สวัสดีค่ะ เห็นพิมพ์ภาษาไทย พี่คนไทยใช่มั้ยคะ |
@amperespy โดนบล๊อคเหมือนกันครับ ใช้วิธีตัดต่อเน็ตเอาครับ -_- |
@anusoft โอเคค่ะ ขอบคุณค่ะะ >*< |
@anusoft สรุปพี่แก้ปัญหา |
pip install line -update
|
@zintoo ผมอัพแล้ว แต่มันยังขึ้นแบบนี้ |
unistall line แล้วลงใหม่ update pip ให้เป็น version ล่าสุด เพราะ pip
|
https://pip.pypa.io/en/stable/installing/
|
@zintoo ตอนนี้ได้ละแต่ผมยังเจอปัญหา ว่า run script นานๆมันยังขึ้น error แบบเดิมครับพอมีวิธีแก้ไหม |
ผมไม่เคยเจอ คิดว่าน่าจะเป็นปัญหาที่ เน็ตเวิร์ค ไม่เสถียร
|
@zintoo ผมพอเจอปัญหาละครับว่ามันมาจาก การ SendMessage ถ้า call ถี่ๆ มันจะทำให้เกิดปัญหา ทำให้โดนแบนชั่วคราวด้วย ไม่แน่ใจพอทราบไหมครับว่าแก้ยังไง |
แต่ละ msg delay 15-30 วิ
|
ตอนนี้จะส่งข้อความ ขึ้นแจ้งว่าให้ใส่ Pin code ใช่มั้ยคะ |
@amperespy first time login must verify pin code after you login success you can save certificate and token for next login |
เข้าใจว่าเป็นที่ account นั้นมีการใช้งานสมัคร line@ ไว้ด้วย
|
line@ หมายถึงอย่างไรนะคะ |
at.line.me/en/
|
ไม่ได้สมัครอ่ะค่ะ >*< อาจจะต้องลองแบบ Token ต่อไป >< |
ครับ เหตุผลจริง ยังไม่ทราบ ของผม code เดียวกัน ต่าง account อันหนึงขึ้น
|
@zier Thank you, but it will be expired, right? |
รบกวนอีกครั้งค่ะ ใช้ code เดียวกัน Error ตามนี้ค่ะ พอทราบสาเหตุมั้ยคะ รบกวนด้วยค่ะ ขอบคุณมากค่ะ -/- client = LineClient(authToken="xxx") |
เป็นเหมือนกันครับ 2016-03-29 11:19 GMT+07:00 amperespy notifications@github.com:
|
@amperespy @zintoo ป.ล. ผมใช้อยู่ไม่เจอปัญหาอะไรเลยนะครับ |
ไม่ได้ Login ในคอมค่ะ ประเด็นคือ ตอนนี้ทดสอบอยู่ 3 account ค่ะ แต่สามารถ Login โดยใช้ authToken ได้เพียง 1 account ส่วนอีก 2 account เป็น account ที่เพิ่งทำการสมัคร 3-4 เดือน รบกวนแนะนำด้วยค่ะ ขอบคุณมาก ๆ ค่ะ |
เหมือนกันครับ มี หลาย account แต่ตอนนี้ ใช้ได้ 1 account บน windows 2016-04-01 8:52 GMT+07:00 amperespy notifications@github.com:
|
@amperespy เท่าทีผมจำไม่ผิด มันจะเก็บค่าauthToken ไว้ใน directory ที่เรารันบอท คุณลองเปลี่ยนdirectory สำหรับแต่ล่ะ account ดูนะครับ @zintoo น่าจะปัญหาเดี่ยวกันกับข้างบน สังเกตุจากใช้ได้แค่account เดียว ส่วนเรื่องรันใน linux โดนแบน 24 ชั่วโมง ผมว่าไม่เกี่ยวนะ ผมรันบอทอยู๋ใน VPS debian มาครึ่งปีไม่เคยโดนแบบนะครับ |
คือ ไม่ได้เก็บไว้ใน Directory อ่ะค่ะ ใช้ code เรียกตรงๆแบบนี้เลยค่ะ แต่หากใช้ user/pass สามารถ run ผ่านได้ปกติ ทุก account ค่ะ ไม่ทราบว่าขอบคุณสามารถ run ผ่าน ได้ทุก account เลยมั้ยค่ะ ตอนนี้สันนิษฐานเบื้องต้นว่า แต่ละ Account ระดับ verify การใช้งานอาจมีบางอย่าง โดย Account ที่ใช้งานได้ สามารถ run ได้ทั้ง Window และ Linux ค่ะ |
@amperespy ผมมี แค่ไอดีเดียวครับ แล้วสมัครนานแล้ว ผมว่าที่คุณสันนิษฐานคงงถูกแล้งแหละครับ |
ผมรันมา ปีกว่า
|
@FrozenFighter @zintoo |
โดน block กันยังครับหรือยังรันกันได้อยู่ |
@sodasonic ปล. ท่านอื่นมีวิธีสร้าง Token แบบ auto บ้างมั้ยคะะ -/- |
เพิ่งมาเจอและกำลังลองเทสต์ ไม่ทราบว่าพอจะมีตัวอย่างโค้ดใช้งานจริงให้ดูเป็นตัวอย่างบ้างมั้ยครับ ไม่เคยจับ python เลย ตอนนี้กำลังงมให้มันล็อกอิน ส่งข้อความ ส่งรูปอะไรได้บ้างแล้ว แต่ยังไม่รู้จะไปทางไหนต่อดี = = |
อีเมลมาหลังไมค์เลยครับ suttipong@andaman-tracking.com
เมื่อ 1 พ.ย. 2016 8:49 ก่อนเที่ยง "amperespy" <notifications@github.com>
เขียนว่า
… @sodasonic <https://github.com/sodasonic>
ยังรันใช้งานอยู่ค่ะ แต่ Authen Token ที่สำหรับ Login จะหมดอายุทุก 1 เดือน
แล้วต้อง Key pin ที่โทรศัพท์ด้วย
จึงไม่ได้สร้าง File ให้ run auto ค่ะ
ปล. ท่านอื่นมีวิธีสร้าง Token แบบ auto บ้างมั้ยคะะ -/-
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB9TaA46bOw4Y6F_V9rMT_-KHZ0mV9Hwks5q5pqcgaJpZM4D4ssr>
.
|
อีเมลมาหลังไมค์เลยครับ suttipong@andaman-tracking.com
เมื่อ 7 มี.ค. 2017 7:34 หลังเที่ยง "shinomura" <notifications@github.com>
เขียนว่า
… เพิ่งมาเจอและกำลังลองเทสต์ ไม่ทราบว่าพอจะมีตัวอย่างโค้
ดใช้งานจริงให้ดูเป็นตัวอย่างบ้างมั้ยครับ ไม่เคยจับ python เลย
ตอนนี้กำลังงมให้มันล็อกอิน ส่งข้อความ ส่งรูปอะไรได้บ้างแล้ว
แต่ยังไม่รู้จะไปทางไหนต่อดี = =
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB9TaL1FHQ6rv3pAK6CRI9nAxCv3ZcHdks5rjU7PgaJpZM4D4ssr>
.
|
Did someone managed THttpClient with PURE TCP, im stuck at reading response with buff size Thanks |
Traceback (most recent call last):
File "echobot.py", line 34, in
for op in client.longPoll():
File "/usr/local/lib/python2.7/dist-packages/line-0.4.1-py2.7.egg/line/client.py", line 504, in longPoll
operations = self._fetchOperations(self.revision, count)
File "/usr/local/lib/python2.7/dist-packages/line-0.4.1-py2.7.egg/line/api.py", line 308, in _fetchOperations
return self._client.fetchOperations(revision, count)
File "/usr/local/lib/python2.7/dist-packages/curve-0.1.0-py2.7.egg/curve/CurveThrift.py", line 483, in fetchOperations
return self.recv_fetchOperations()
File "/usr/local/lib/python2.7/dist-packages/curve-0.1.0-py2.7.egg/curve/CurveThrift.py", line 495, in recv_fetchOperations
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
File "/usr/local/lib/python2.7/dist-packages/thrift-0.9.1-py2.7.egg/thrift/protocol/TCompactProtocol.py", line 308, in readMessageBegin
proto_id = self.__readUByte()
File "/usr/local/lib/python2.7/dist-packages/thrift-0.9.1-py2.7.egg/thrift/protocol/TCompactProtocol.py", line 287, in __readUByte
result, = unpack('!B', self.trans.readAll(1))
File "/usr/local/lib/python2.7/dist-packages/thrift-0.9.1-py2.7.egg/thrift/transport/TTransport.py", line 58, in readAll
chunk = self.read(sz - have)
File "/usr/local/lib/python2.7/dist-packages/thrift-0.9.1-py2.7.egg/thrift/transport/THttpClient.py", line 97, in read
return self.__http.file.read(sz)
AttributeError: 'NoneType' object has no attribute 'read'
Line 34 echobot.py is
The text was updated successfully, but these errors were encountered: