GithubHelp home page GithubHelp logo

Network error about chatgpt-telegram-bot HOT 23 CLOSED

n3d1117 avatar n3d1117 commented on May 18, 2024
Network error

from chatgpt-telegram-bot.

Comments (23)

SoulOfDefend avatar SoulOfDefend commented on May 18, 2024 1

Yes. But the error was in the wrong version of python :) TY

from chatgpt-telegram-bot.

n3d1117 avatar n3d1117 commented on May 18, 2024 1

@areochi you have proxy enabled with this line:

PROXY="http://localhost:8080"

just to confirm, do you actually have a proxy running at http://localhost:8080?

from chatgpt-telegram-bot.

areochi avatar areochi commented on May 18, 2024 1

@areochi Yes, that's a sample configuration for optional parameters. The only required values are OPENAI_API_KEY and TELEGRAM_BOT_TOKEN. I probably should make that more clear. Can you try deleting everything from the .env file except openai key and telegram token?

yeah, it works. i didnt try to push docker yet, but the code works and bot gives proper replies

from chatgpt-telegram-bot.

SoulOfDefend avatar SoulOfDefend commented on May 18, 2024 1

Hi! @n3d1117 I tried to delete everything from the .env file and everything worked! Thank you for your help in solving the problem:)

from chatgpt-telegram-bot.

n3d1117 avatar n3d1117 commented on May 18, 2024

Hey there @SoulOfDefend! Have you tried pulling from latest changes in main branch?

from chatgpt-telegram-bot.

SoulOfDefend avatar SoulOfDefend commented on May 18, 2024

Or not:(( The error did not disappear, downloaded the current version, installed python 3.9, but still nothing works

from chatgpt-telegram-bot.

SoulOfDefend avatar SoulOfDefend commented on May 18, 2024

The version for python 3.1 works, but not for 3.9

from chatgpt-telegram-bot.

rainbowjose avatar rainbowjose commented on May 18, 2024

All connection attempts failed

Same

from chatgpt-telegram-bot.

n3d1117 avatar n3d1117 commented on May 18, 2024

Weird. Can you try using Docker?

from chatgpt-telegram-bot.

areochi avatar areochi commented on May 18, 2024

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

from chatgpt-telegram-bot.

n3d1117 avatar n3d1117 commented on May 18, 2024

Can you share your .env file (without api key and token)?

from chatgpt-telegram-bot.

areochi avatar areochi commented on May 18, 2024

Can you share your .env file (without api key and token)?

my .env file looks like that:
.env.txt

i add a .txt to upload it here. so inbefore i just changed .env.example -> .env

from chatgpt-telegram-bot.

Youquell avatar Youquell commented on May 18, 2024

Yes, I have the same mistake. Python 3.11 . For some reason, telegram refuses to connect.

from chatgpt-telegram-bot.

areochi avatar areochi commented on May 18, 2024

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

from chatgpt-telegram-bot.

areochi avatar areochi commented on May 18, 2024

@areochi you have proxy enabled with this line:
PROXY="http://localhost:8080/"

just to confirm, do you actually have a proxy running at http://localhost:8080?

and if you check your .env.example file it has the same one:

Proxy to be used for OpenAI and Telegram bot

PROXY="http://localhost:8080/"

from chatgpt-telegram-bot.

n3d1117 avatar n3d1117 commented on May 18, 2024

@areochi Yes, that's a sample configuration for optional parameters. The only required values are OPENAI_API_KEY and TELEGRAM_BOT_TOKEN. I probably should make that more clear. Can you try deleting everything from the .env file except openai key and telegram token?

from chatgpt-telegram-bot.

areochi avatar areochi commented on May 18, 2024

@n3d1117 also voice messages doesnt work, and rest is working good

from chatgpt-telegram-bot.

n3d1117 avatar n3d1117 commented on May 18, 2024

@n3d1117 also voice messages doesnt work, and rest is working good

Any error? Or no response/log at all?

from chatgpt-telegram-bot.

areochi avatar areochi commented on May 18, 2024

@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

from chatgpt-telegram-bot.

n3d1117 avatar n3d1117 commented on May 18, 2024

Okay, i'll keep this issue open. Please share exact error, logs and/or the audio file you used

from chatgpt-telegram-bot.

n3d1117 avatar n3d1117 commented on May 18, 2024

@rainbowjose @SoulOfDefend @Youquell could you please check if removing all parameters your .env file (except openai key and telegram token) fixes the issue?

from chatgpt-telegram-bot.

areochi avatar areochi commented on May 18, 2024

Okay, i'll keep this issue open. Please share exact error, logs and/or the audio file you used

hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] (File not found - in my language) and telegram says Unsupported file type

from chatgpt-telegram-bot.

n3d1117 avatar n3d1117 commented on May 18, 2024

hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] (File not found - in my language) and telegram says Unsupported file type

Hmm, seems to be a Windows related issue. Please open a new GitHub issue so we can track it there

from chatgpt-telegram-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.