You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
local model gemma 4 coding development stops "Cannot connect to API: Headers Timeout Error" #441
Tasks
✓ 1. Create HTML structure for solar system
◐ 2. Style with CSS (orbits, planets, animations)
○ 3. Add JavaScript interactivity (click, info display)
Cannot connect to API: Headers Timeout Error
why local ollama llm model gemma 4 on my laptop throws that error and stops to develop
Hey @computerworxdev - can you let me know what model version of Gemma 4 you're using? If you can copy the model code from Ollama that would be a great
Similar to @t0astlabs , I was experiencing this issue with Qwen 3.5 (and Qwen 3.6) and a remote Ollama server. The workaround of disabling those two timeouts also worked for me.
Activity
will-lamerton commentedon Apr 9, 2026
Hey @computerworxdev - can you let me know what model version of Gemma 4 you're using? If you can copy the model code from Ollama that would be a great
computerworxdev commentedon Apr 9, 2026
➜ ~ ollama show gemma4:latest
Model
architecture gemma4
parameters 8.0B
context length 131072
embedding length 2560
quantization Q4_K_M
requires 0.20.0
Capabilities
completion
vision
audio
tools
thinking
Parameters
temperature 1
top_k 64
top_p 0.95
License
Apache License
Version 2.0, January 2004
...
computerworxdev commentedon Apr 9, 2026
sorry actually this error was on a different model loaded with nanocoder i will be checking gemma 4 in 1 min since i had issues yesterday
here is the qween3.5 with above error
➜ ~ ollama show qwen3.5:latest
Model
architecture qwen35
parameters 9.7B
context length 262144
embedding length 4096
quantization Q4_K_M
requires 0.17.1
Capabilities
completion
vision
tools
thinking
Parameters
presence_penalty 1.5
temperature 1
top_k 20
top_p 0.95
License
Apache License
Version 2.0, January 2004
t0astlabs commentedon Apr 10, 2026
I did not have this problem with gemma4, although I did have it with qwen 3.5. I set:
"requestTimeout": -1"socketTimeout": -1in my agents.config.json for the model
For example:
{ "nanocoder": { "providers": [ { "name": "my-local-model", "baseUrl": "http://localhost:1234/v1", "requestTimeout": -1, "socketTimeout": -1 } ] } }This fixed the issue for me.
will-lamerton commentedon Apr 22, 2026
@computerworxdev - can you confirm if this fixes your issue?
LukeShortCloud commentedon Apr 25, 2026
Similar to @t0astlabs , I was experiencing this issue with Qwen 3.5 (and Qwen 3.6) and a remote Ollama server. The workaround of disabling those two timeouts also worked for me.