Comments (3)
thanks for reply!
everything seems to be fine with the network
docker run -it --rm docker.io/library/alpine:latest ping -c 5 google.com
PING google.com (142.250.186.206): 56 data bytes
64 bytes from 142.250.186.206: seq=0 ttl=117 time=27.687 ms
64 bytes from 142.250.186.206: seq=1 ttl=117 time=27.061 ms
64 bytes from 142.250.186.206: seq=2 ttl=117 time=26.057 ms
64 bytes from 142.250.186.206: seq=3 ttl=117 time=24.964 ms
64 bytes from 142.250.186.206: seq=4 ttl=117 time=27.042 ms
--- google.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 24.964/26.562/27.687 ms
docker run -it --env-file .env n3d1117/chatgpt-telegram-bot
Unable to find image 'n3d1117/chatgpt-telegram-bot:latest' locally
latest: Pulling from n3d1117/chatgpt-telegram-bot
661ff4d9561e: Pull complete
44cda88cd45d: Pull complete
0ee71d022571: Pull complete
2738858d84c0: Pull complete
faa411d0fa85: Pull complete
94e796d3ed38: Pull complete
7cbd88c2fdec: Pull complete
5f8bd8140c68: Pull complete
d6be7a1806d2: Pull complete
Digest: sha256:1b6a05e489d7ffd213924ce314a30f2032d1d2cb51baf9c6b081273b3f5ffeb6
Status: Downloaded newer image for n3d1117/chatgpt-telegram-bot:latest
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 114, in connect_tcp
stream: anyio.abc.ByteStream = await anyio.connect_tcp(
File "/usr/local/lib/python3.9/site-packages/anyio/_core/_sockets.py", line 221, in connect_tcp
await event.wait()
File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 597, in aexit
raise exceptions[0]
File "/usr/local/lib/python3.9/site-packages/anyio/_core/_sockets.py", line 167, in try_connect
stream = await asynclib.connect_tcp(remote_host, remote_port, local_address)
File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 1627, in connect_tcp
await get_running_loop().create_connection(
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1050, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 961, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 500, in sock_connect
return await fut
asyncio.exceptions.CancelledErrorDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
yield
File "/usr/local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 121, in connect_tcp
stream._raw_socket.setsockopt(*option) # type: ignore[attr-defined] # pragma: no cover
File "/usr/local/lib/python3.9/site-packages/anyio/_core/_tasks.py", line 119, in exit
raise TimeoutError
TimeoutErrorThe above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 262, in handle_async_request
raise exc
File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request
response = await connection.handle_async_request(request)
File "/usr/local/lib/python3.9/site-packages/httpcore/_async/http_proxy.py", line 271, in handle_async_request
connect_response = await self._connection.handle_async_request(
File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection.py", line 92, in handle_async_request
raise exc
File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection.py", line 69, in handle_async_request
stream = await self._connect(request)
File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection.py", line 117, in _connect
stream = await self._network_backend.connect_tcp(**kwargs)
File "/usr/local/lib/python3.9/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp
return await self._backend.connect_tcp(
File "/usr/local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 121, in connect_tcp
stream._raw_socket.setsockopt(*option) # type: ignore[attr-defined] # pragma: no cover
File "/usr/local/lib/python3.9/contextlib.py", line 137, in exit
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.9/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectTimeoutThe above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/telegram/request/_httpxrequest.py", line 216, in do_request
res = await self._client.request(
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1530, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1617, in send
response = await self._send_handling_auth(
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
response = await self._send_handling_redirects(
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
response = await self._send_single_request(request)
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1719, in _send_single_request
response = await transport.handle_async_request(request)
File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "/usr/local/lib/python3.9/contextlib.py", line 137, in exit
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectTimeoutThe above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/bot/main.py", line 117, in
main()
File "/app/bot/main.py", line 113, in main
telegram_bot.run()
File "/app/bot/telegram_bot.py", line 1084, in run
application.run_polling()
File "/usr/local/lib/python3.9/site-packages/telegram/ext/_application.py", line 727, in run_polling
return self.__run(
File "/usr/local/lib/python3.9/site-packages/telegram/ext/_application.py", line 921, in __run
raise exc
File "/usr/local/lib/python3.9/site-packages/telegram/ext/_application.py", line 910, in __run
loop.run_until_complete(self.initialize())
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/site-packages/telegram/ext/_application.py", line 399, in initialize
await self.bot.initialize()
File "/usr/local/lib/python3.9/site-packages/telegram/ext/_extbot.py", line 271, in initialize
await super().initialize()
File "/usr/local/lib/python3.9/site-packages/telegram/_bot.py", line 591, in initialize
await self.get_me()
File "/usr/local/lib/python3.9/site-packages/telegram/ext/_extbot.py", line 1706, in get_me
return await super().get_me(
File "/usr/local/lib/python3.9/site-packages/telegram/_bot.py", line 381, in decorator
result = await func(self, *args, **kwargs) # skipcq: PYL-E1102
File "/usr/local/lib/python3.9/site-packages/telegram/_bot.py", line 736, in get_me
result = await self._post(
File "/usr/local/lib/python3.9/site-packages/telegram/_bot.py", line 469, in _post
return await self._do_post(
File "/usr/local/lib/python3.9/site-packages/telegram/ext/_extbot.py", line 325, in _do_post
return await super()._do_post(
File "/usr/local/lib/python3.9/site-packages/telegram/_bot.py", line 497, in _do_post
return await request.post(
File "/usr/local/lib/python3.9/site-packages/telegram/request/_baserequest.py", line 168, in post
result = await self._request_wrapper(
File "/usr/local/lib/python3.9/site-packages/telegram/request/_baserequest.py", line 291, in _request_wrapper
raise exc
File "/usr/local/lib/python3.9/site-packages/telegram/request/_baserequest.py", line 277, in _request_wrapper
code, payload = await self.do_request(
File "/usr/local/lib/python3.9/site-packages/telegram/request/_httpxrequest.py", line 233, in do_request
raise TimedOut from err
telegram.error.TimedOut: Timed out
from chatgpt-telegram-bot.
It seems you don't have an internet connection in your docker network. Try to restart docker with something like sudo systemctl restart dockerd
and test your connection with docker run -it --rm docker.io/library/alpine:latest ping -c 5 google.com
.
More about docker networking is here
from chatgpt-telegram-bot.
The same problem!
from chatgpt-telegram-bot.
Related Issues (20)
- Update docker image in docker hub HOT 1
- Separate /image commands for Dall-E 2 and Dall-E 3
- audo ---> text HOT 1
- DDG HOT 3
- Everything worked and abruptly stopped working HOT 1
- Bugs in the operation of plugins: auto_tts, ddg_ddg_search, and ddg_images_earch (403, HttpError).
- stop or new dialog
- Add support for gpt-4-turbo-2024-04-09 HOT 1
- am i the only one facing this? HOT 5
- Why do the robot's responses always lack the first two bytes? HOT 1
- tts time out
- Model switch GPT 3.5 vs GPT4
- GPT-4o support HOT 1
- Can't run the python script, I am getting an error related to unexpected keyword argument 'proxy' HOT 4
- Error 403 HOT 1
- Allow to access files
- Cutting first two signs HOT 3
- Unknown encoding gpt-3.5-turbo
- Chatgpt bot
- Transcription of a video room
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-telegram-bot.