AttributeError: 'NoneType' object has no attribute 'ack' (Not fixed with duplicate threads' solutions) #6271
Closed
3 tasks done
Labels
invalid
This is not right.
Summary
Bot runs as normal, occasionally crashes due to the NoneType error.
Reproduction Steps
Cannot consistently reproduce this. This error occurs around every 3 days.
Expected Results
Bot runs as usual with no problem.
Actual Results
Traceback (most recent call last):
File "D:/Downloads2/Pycharm projects/DiscordBot2/DiscordBot2.py", line 32, in
client.run('bot_token')
File "D:\Downloads2\Pycharm projects\DiscordBot2\lib\site-packages\discord\client.py", line 678, in run
return future.result()
File "D:\Downloads2\Pycharm projects\DiscordBot2\lib\site-packages\discord\client.py", line 658, in runner
await self.start(*args, **kwargs)
File "D:\Downloads2\Pycharm projects\DiscordBot2\lib\site-packages\discord\client.py", line 622, in start
await self.connect(reconnect=reconnect)
File "D:\Downloads2\Pycharm projects\DiscordBot2\lib\site-packages\discord\client.py", line 524, in connect
await self.ws.poll_event()
File "D:\Downloads2\Pycharm projects\DiscordBot2\lib\site-packages\discord\gateway.py", line 504, in poll_event
await self.received_message(msg.data)
File "D:\Downloads2\Pycharm projects\DiscordBot2\lib\site-packages\discord\gateway.py", line 401, in received_message
self._keep_alive.ack()
AttributeError: 'NoneType' object has no attribute 'ack'
Checklist
There are 2 duplicate threads with this issue: Thread1 and Thread2. However, the solutions presented in both of these threads do not solve the issue
System Information
The text was updated successfully, but these errors were encountered: