Traceback (most recent call last):
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagesurllib3connectionpool.py”, line 536, in _make_request
response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagesurllib3connection.py”, line 461, in getresponse
httplib_response = super().getresponse()
^^^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libhttpclient.py”, line 1419, in getresponse
response.begin()
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libhttpclient.py”, line 331, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libhttpclient.py”, line 292, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), “iso-8859-1”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsocket.py”, line 707, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libssl.py”, line 1253, in recv_into
return self.read(nbytes, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libssl.py”, line 1105, in read
return self._sslobj.read(len, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagesrequestsadapters.py”, line 486, in send resp = conn.urlopen(
^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagesurllib3connectionpool.py”, line 844, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagesurllib3utilretry.py”, line 470, in increment
raise reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagesurllib3utilutil.py”, line 39, in reraise
raise value
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagesurllib3connectionpool.py”, line 790, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagesurllib3connectionpool.py”, line 538, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagesurllib3connectionpool.py”, line 370, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=’api.telegram.org’, port=443): Read timed out. (read timeout=25)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:UsersryuuDownloadsTelegram Desktopcu.py”, line 105, in
bot.polling(none_stop=True)
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagestelebot_init_.py”, line 1045, in polling
self._threaded_polling(non_stop=non_stop, interval=interval, timeout=timeout, long_polling_timeout=long_polling_timeout,
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagestelebot_init.py”, line 1120, in _threaded_polling
raise e
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagestelebot_init.py”, line 1081, in _threaded_polling
polling_thread.raise_exceptions()
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagestelebotutil.py”, line 108, in raise_exceptions
raise self.exception_info
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagestelebotutil.py”, line 90, in run
task(*args, **kwargs)
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagestelebot_init.py”, line 651, in _retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagestelebot_init.py”, line 625, in get_updates
json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates, long_polling_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagestelebotapihelper.py”, line 323, in get_updates
return _make_request(token, method_url, params=payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagestelebotapihelper.py”, line 158, in _make_request
result = _get_req_session().request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagesrequestssessions.py”, line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagesrequestssessions.py”, line 703, in send r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:UsersryuuAppDataLocalProgramsPythonPython312Libsite-packagesrequestsadapters.py”, line 532, in send raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host=’api.telegram.org’, port=443): Read timed out. (read timeout=25)
i made a bot to request data from a host and after a time it stop working