vanhbakaa / Kaia-bot

Python bot for Kaia telegram bot. Join here:
https://t.me/kaiaplaybot/app?startapp=ref-sfpx96ju54fv41n
MIT License
31 stars 3 forks source link

Proxy bug #2

Open MelikUltra opened 1 month ago

MelikUltra commented 1 month ago

File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\main.py", line 4, in from bot.utils.launcher import process File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\bot\utils__init.py", line 2, in from . import launcher File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\bot\utils\launcher.py", line 10, in from bot.config import settings File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\bot\config__init__.py", line 1, in from .config import settings File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\bot\config\config.py", line 18, in settings = Settings() ^^^^^^^^^^ File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\venv\Lib\site-packages\pydantic_settings\main.py", line 84, in init super().init( File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\venv\Lib\site-packages\pydantic\main.py", line 171, in init self.pydantic_validator__.validate_python(data, self_instance=self) pydantic_core._pydantic_core.ValidationError: 1 validation error for Settings USE_PROXY_FROM_FILE Input should be a valid boolean, unable to interpret input [type=bool_parsing, input_value='Flase', input_type=str] For further information visit https://errors.pydantic.dev/2.6/v/bool_parsing

in the bot proxy is must, without proxy the bot is not working, even used to set proxy=false it still requires proxy but it works with proxy

vanhbakaa commented 1 month ago

edit it here

MelikUltra commented 1 month ago

edit it here

i tried that before submitting the issue

vanhbakaa commented 1 month ago

edit it here

i tried that before submitting the issue

send me a screenshot of config.py file

iamspa commented 1 month ago

File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\main.py", line 4, in from bot.utils.launcher import process File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\bot\utilsinit.py", line 2, in from . import launcher File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\bot\utils\launcher.py", line 10, in from bot.config import settings File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\bot\configinit.py", line 1, in from .config import settings File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\bot\config\config.py", line 18, in settings = Settings() ^^^^^^^^^^ File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\venv\Lib\site-packages\pydantic_settings\main.py", line 84, in init super().init( File "C:\Users\ULTRA\Desktop\tele bot\Kaia-bot-main\M\venv\Lib\site-packages\pydantic\main.py", line 171, in init self.pydantic_validator.validate_python(data, self_instance=self) pydantic_core._pydantic_core.ValidationError: 1 validation error for Settings USE_PROXY_FROM_FILE Input should be a valid boolean, unable to interpret input [type=bool_parsing, input_value='Flase', input_type=str] For further information visit https://errors.pydantic.dev/2.6/v/bool_parsing

in the bot proxy is must, without proxy the bot is not working, even used to set proxy=false it still requires proxy but it works with proxy

USE_PROXY_FROM_FILE=false

vanhbakaa commented 1 month ago

its True or False not false bro

iamspa commented 1 month ago

its True or False not false bro

i write false and its work bro

vanhbakaa commented 1 month ago

False not false bruh

prognt commented 1 month ago
False=false=no
True=true=yes

i always use "yes/no" in all bot envs

prognt commented 1 month ago
BOOL_FALSE = {0, '0', 'off', 'f', 'false', 'n', 'no'}
BOOL_TRUE = {1, '1', 'on', 't', 'true', 'y', 'yes'}

from pydantic/v1/validators.py