Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions docs/troubleshooting/connection-error.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -604,24 +604,17 @@ If you're seeing SSL errors like `UNEXPECTED_EOF_WHILE_READING` or `Max retries
- `Max retries exceeded with url: /v1/web-search`
- Web search works in standalone Python scripts but fails in Open WebUI

#### Cause: HTTP Proxy Configured for HTTPS Traffic
#### Check proxy routing and HTTPS tunneling

This typically happens when you have an **HTTP proxy** configured for **HTTPS traffic**. The HTTP proxy cannot properly handle TLS connections, causing SSL handshake failures.
An `HTTPS_PROXY` value that starts with `http://` is valid when the proxy accepts HTTP CONNECT tunnels to HTTPS destinations. Check that the proxy supports CONNECT and allows the destination. The scheme in the proxy URL describes the connection to the proxy itself. See [aiohttp proxy support](https://docs.aiohttp.org/en/stable/client_advanced.html#proxy-support).

Check your environment for these variables:
- `HTTP_PROXY` / `http_proxy`
- `HTTPS_PROXY` / `https_proxy`
Open WebUI's server-side Ollama requests, including model listing and chat, and its SearXNG search requests read the proxy environment. If an internal provider should connect directly, add the hostname from its configured URL to `NO_PROXY` in the Open WebUI service environment. Keep any existing entries. For example, if the connection URLs use the Docker service names `ollama` and `searxng-core`:

If your `https_proxy` points to `http://...` (HTTP) instead of `https://...` (HTTPS), SSL handshakes will fail because the proxy terminates the connection unexpectedly.

#### Solutions
```bash
NO_PROXY=ollama,searxng-core
```

1. **Fix proxy configuration**: Use an HTTPS-capable proxy for HTTPS traffic, or configure your HTTP proxy to properly support CONNECT tunneling for SSL
2. **Bypass proxy for specific hosts**: Set `NO_PROXY` environment variable:
```bash
NO_PROXY=api.bochaai.com,api.tavily.com,api.search.brave.com
```
3. **Disable proxy if not needed**: Unset the proxy environment variables entirely
For Docker Compose, update the Open WebUI service's environment and apply the change with `docker compose up -d`. For a service started outside Docker, restart it with the updated environment. Then check model listing or run a search again.

#### Why Standalone Scripts Work

Expand Down
2 changes: 1 addition & 1 deletion docs/troubleshooting/web-search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ WEB_SEARCH_TRUST_ENV=True

This is a **ConfigVar** variable, meaning it can be set via environment variable on startup OR configured through the Admin Panel UI. Once set in the UI, the database value takes precedence over the environment variable.

This setting tells Open WebUI's web content loader to respect the proxy settings from your environment variables (`http_proxy`, `https_proxy`). Without this, even if your search engine works through the proxy, fetching content from the returned URLs will fail.
This setting controls whether the web content loader reads proxy environment variables when fetching the pages behind search results. The request to the SearXNG search API uses the server's proxy environment separately. If only your SearXNG server should be reached directly, add its hostname to `NO_PROXY` and keep **Trust Proxy Environment** enabled for page fetching. See [proxy routing and HTTPS tunneling](/troubleshooting/connection-error#check-proxy-routing-and-https-tunneling).

:::

Expand Down
Loading