goose icon indicating copy to clipboard operation
goose copied to clipboard

Goose cannot connect to Ollama on Windows 10: "Execution error: error sending request for url (http://localhost:11434/v1/chat/completions)"

Open LordsWars opened this issue 4 months ago • 3 comments

Bug report description:

Platform: Windows 10 x64

Both Goose and Ollama are installed and running on the same machine.

Ollama responds to requests using curl, for example:

curl http://localhost:11434/api/tags {"models":[{"name":"qwen2.5:latest", ...}]} In Goose, the Ollama provider is selected and OLLAMA_HOST is set to http://localhost:11434.

When I send any request via Goose, I get the following error:

Execution error: error sending request for url (http://localhost:11434/v1/chat/completions) The port is not blocked by firewall or antivirus, and both programs run in the same Windows environment (not WSL, not Docker). Restarting and reconfiguring do not help.

Question:

Why does Goose fail to see Ollama even though Ollama responds directly via curl, and how can this be fixed?

Reference to the official troubleshooting steps I have followed:

https://block.github.io/goose/docs/troubleshooting/#using-ollama-provider

LordsWars avatar Aug 12 '25 07:08 LordsWars

время ожидание ответа в оллама окне от момента вопроса до момента ответа доходит до 10 мин и ответ выводится до 10 минут чуть ли не по буквам :( ноутбук i3 2го поколения 8гиг DDR4

LordsWars avatar Aug 13 '25 02:08 LordsWars

seems as if goose isn't streaming the request for windows for some reason.

BrutchsamaJeanLouis avatar Sep 10 '25 16:09 BrutchsamaJeanLouis

can you create a custom provider and share that? it might be a subtle url issue

DOsinga avatar Oct 31 '25 18:10 DOsinga

closing as should be solvable via custom and other ways. please open if more information.

michaelneale avatar Nov 06 '25 01:11 michaelneale