-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network error #81
Comments
Hey there @SoulOfDefend! Have you tried pulling from latest changes in |
Yes. But the error was in the wrong version of python :) TY |
Or not:(( The error did not disappear, downloaded the current version, installed python 3.9, but still nothing works |
The version for python 3.1 works, but not for 3.9 |
All connection attempts failed Same |
Weird. Can you try using Docker? |
same issue, cant deploy to the docker or cant even run the code, same errors. ive tried 3.7, 3.9, 3,11 python versions |
Can you share your .env file (without api key and token)? |
my .env file looks like that: i add a .txt to upload it here. so inbefore i just changed .env.example -> .env |
Yes, I have the same mistake. Python 3.11 . For some reason, telegram refuses to connect. |
@areochi you have proxy enabled with this line:
just to confirm, do you actually have a proxy running at |
no, i don't have any proxy. i just pulled from your github link and tried to run a code, and as you we have that errors. i've tried several python versions and also tried to install all requirements manualy but didnt help to me |
and if you check your .env.example file it has the same one: Proxy to be used for OpenAI and Telegram botPROXY="http://localhost:8080/" |
@areochi Yes, that's a sample configuration for optional parameters. The only required values are |
yeah, it works. i didnt try to push docker yet, but the code works and bot gives proper replies |
@n3d1117 also voice messages doesnt work, and rest is working good |
Any error? Or no response/log at all? |
can't do another test atm (i'm at work). But telegram replied me something like: wrong format or i can use this type of audio, i'll test later |
Okay, i'll keep this issue open. Please share exact error, logs and/or the audio file you used |
@rainbowjose @SoulOfDefend @Youquell could you please check if removing all parameters your .env file (except openai key and telegram token) fixes the issue? |
hp, ht, pid, tid = _winapi.CreateProcess(executable, args, |
Hmm, seems to be a Windows related issue. Please open a new GitHub issue so we can track it there |
Hi! @n3d1117 I tried to delete everything from the .env file and everything worked! Thank you for your help in solving the problem:) |
Hi, when I try to install I get an error:
chatgpt-telegram-bot-chatgpt-telegram-bot-1 | File "/usr/local/lib/python3.9/site-packages/telegram/request/_httpxrequest.py", line 223, in do_request
chatgpt-telegram-bot-chatgpt-telegram-bot-1 | raise NetworkError(f"httpx.{err.class.name}: {err}") from err
chatgpt-telegram-bot-chatgpt-telegram-bot-1 | telegram.error.NetworkError: httpx.ConnectError: All connection attempts failed
chatgpt-telegram-bot-chatgpt-telegram-bot-1 exited with code 1
I tried to install the previous version and everything worked! Hope for help:)
The text was updated successfully, but these errors were encountered: