No address associated with hostname when interfacing with telegrambot
Greetings! I am trying to send voice audios to my space via a telegrambot but I am receiving this DNS related error.I found this possibly related issue:Got "cURL error 6: Could not resolve host: api.telegram.org" Error · Issue #293 · irazasyed/telegram-bot-sdk · GitHubSo I checked the contents of the space’s/etc/resolv.conf:search spaces-v2.svc.cluster.local svc.cluster.local cluster.local ec2.internal
nameserver 172.20.0.10
options ndots:5Here is the full output:File "/home/user/.local/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot6974782337:xxxx/getUpdates?limit=100&timeout=20 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f3b080d73a0>: Failed to resolve 'api.telegram.org' ([Errno -5] No address associated with hostname)"))Is this type of connection not allowed?
2023-12-31T11:42:25Z
I’m having the same problem. I experienced the same issue while sending a request to my Telegram bot via the Telegram bot API URL.
2024-08-01T09:34:30Z
Is the problem solved?? I am facing the same issue