Skip to content
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

Can't run the python script, I am getting an error related to unexpected keyword argument 'proxy' #578

Open
jeffheartmp opened this issue May 18, 2024 · 1 comment

Comments

@jeffheartmp
Copy link

Traceback (most recent call last):
File "bot/main.py", line 117, in
main()
File "bot/main.py", line 113, in main
telegram_bot.run()
File "/root/chatgpt-telegram-bot/bot/telegram_bot.py", line 1051, in run
application = ApplicationBuilder()
File "/root/chatgpt-telegram-bot/venv/lib/python3.8/site-packages/telegram/ext/_applicationbuilder.py", line 310, in build
bot: Bot = self._build_ext_bot() # build a bot
File "/root/chatgpt-telegram-bot/venv/lib/python3.8/site-packages/telegram/ext/_applicationbuilder.py", line 280, in _build_ext_bot
request=self._build_request(get_updates=False),
File "/root/chatgpt-telegram-bot/venv/lib/python3.8/site-packages/telegram/ext/_applicationbuilder.py", line 260, in _build_request
return HTTPXRequest(
File "/root/chatgpt-telegram-bot/venv/lib/python3.8/site-packages/telegram/request/_httpxrequest.py", line 189, in init
self._client = self._build_client()
File "/root/chatgpt-telegram-bot/venv/lib/python3.8/site-packages/telegram/request/_httpxrequest.py", line 224, in _build_client
return httpx.AsyncClient(**self._client_kwargs) # type: ignore[arg-type]
TypeError: init() got an unexpected keyword argument 'proxy'

@wolfich
Copy link

wolfich commented May 24, 2024

Do you have PROXY set in env?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants