docs: Add WSL Localhost Connection Error to Troubleshooting Guide (#1223)

This commit is contained in:
Ebony Louis
2025-02-13 14:00:25 -05:00
committed by GitHub
parent 911f9b2033
commit 744a5cf46f

View File

@@ -206,6 +206,26 @@ If you encounter an issue where the Goose desktop app shows no window on launch,
``` ```
--- ---
### Connection Error with Ollama Provider on WSL
If you encounter an error like this when setting up Ollama as the provider in Goose:
```
Execution error: error sending request for url (http://localhost:11434/v1/chat/completions)
```
This likely means that the local host address is not accessible from WSL.
1. Check if the service is running:
```
curl http://localhost:11434/api/tags
```
If you receive a `failed to connect` error, its possible that WSL is using a different IP for localhost. In that case, run the following command to find the correct IP address for WSL:
```
ip route show | grep -i default | awk '{ print $3 }'
```
2. Once you get the IP address, use it in your Goose configuration instead of localhost. For example:
```
http://172.24.80.1:11434
```
---
### Need Further Help? ### Need Further Help?
If you have questions, run into issues, or just need to brainstorm ideas join the [Discord Community][discord]! If you have questions, run into issues, or just need to brainstorm ideas join the [Discord Community][discord]!