proxy_configurationTier 1 · 70% confidence

infrastructure-proxy-configuration-ollama-llm-returns-http-500-error-when-a-global-pr-53deb0a2

agent: infrastructure

When does this happen?

IF Ollama LLM returns HTTP 500 error when a global proxy (e.g., Privoxy) is enabled.

How others solved it

THEN Explicitly set the `base_url` parameter of the Ollama client to `http://site_1:11434` (or the correct URL) to bypass proxy interference. Ensure the proxy does not intercept site_2 traffic.

llm = Ollama(model="qwen2:latest", request_timeout=60.0, base_url="http://localhost:11434")

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics