#๐Ÿ”’ problem with connection

4 messages ยท Page 1 of 1 (latest)

uneven tiger
#

I have a bot that runs on a Windows server and makes a request to the API once at a certain time. The problem is that such an error often appears and there is no clear description of the exception in it.

[2024-04-10 12:40:22] [WARNING ] discord.gateway: Shard ID None heartbeat blocked for more than 10 seconds.
Loop thread traceback (most recent call last):
  File "main.py", line 149, in <module>
  File "asyncio\runners.py", line 190, in run
  File "asyncio\runners.py", line 118, in run
  File "asyncio\base_events.py", line 640, in run_until_complete
  File "asyncio\windows_events.py", line 321, in run_forever
  File "asyncio\base_events.py", line 607, in run_forever
  File "asyncio\base_events.py", line 1922, in _run_once
  File "asyncio\events.py", line 80, in _run
  File "discord\ext\tasks\__init__.py", line 239, in _loop
  File "main.py", line 109, in update_players_data_loop
  File "utils\cftools.py", line 9, in get_online_players_list
    resp = self.server_player_list()
  File "utils\pycftools.py", line 156, in wrapper
    return wmethod(*args, **kwargs)
  File "utils\pycftools.py", line 306, in server_player_list
    return self.__api_cftools_session.get(self.__server_player_list_url,
  File "requests\sessions.py", line 602, in get
  File "requests\sessions.py", line 589, in request
  File "requests\sessions.py", line 703, in send
  File "requests\adapters.py", line 486, in send
  File "urllib3\connectionpool.py", line 793, in urlopen
  File "urllib3\connectionpool.py", line 467, in _make_request
  File "urllib3\connectionpool.py", line 1099, in _validate_conn
  File "urllib3\connection.py", line 616, in connect
  File "urllib3\connection.py", line 198, in _new_conn
  File "urllib3\util\connection.py", line 73, in create_connection
hoary haloBOT
#

@uneven tiger

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

hoary haloBOT
#

@uneven tiger

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.