feat: support socks5 proxy in docker #5751

Closed
opened 2025-11-11 16:32:33 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @chenqimiao on GitHub (Jul 13, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

when I use proxy by "-e HTTPS_PROXY=socks5://192.168.31.248:1081" in docker,
the console will print "{"error": "ImportError: Using SOCKS proxy, but the 'socksio' package is not installed. Make sure to install httpx using pip install httpx[socks]."}

Desired Solution you'd like

I hope open-webui can install httpx[socks] package in next version.

Alternatives Considered

No response

Additional Context

No response

Originally created by @chenqimiao on GitHub (Jul 13, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description when I use proxy by "-e HTTPS_PROXY=socks5://192.168.31.248:1081" in docker, the console will print "{"error": "ImportError: Using SOCKS proxy, but the 'socksio' package is not installed. Make sure to install httpx using pip install httpx[socks]."} ### Desired Solution you'd like I hope open-webui can install httpx[socks] package in next version. ### Alternatives Considered _No response_ ### Additional Context _No response_
Author
Owner

@rgaricano commented on GitHub (Jul 13, 2025):

added a PR to add these lib optionals: https://github.com/open-webui/open-webui/pull/15685

@rgaricano commented on GitHub (Jul 13, 2025): added a PR to add these lib optionals: https://github.com/open-webui/open-webui/pull/15685
Author
Owner

@chenqimiao commented on GitHub (Jul 13, 2025):

Thanks for your PR .

@chenqimiao commented on GitHub (Jul 13, 2025): Thanks for your PR .
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5751