The following curl code works when I type it into my raspberry pi terminal, however when I try and run the exact same curl copied into an n8n http request node it says:
The service refused the connection - perhaps it is offline
n8n is running on docker on the exact same raspberry pi!
curl http://localhost:11434/api/generate -d '{
"model": "tinyllama",
"prompt": "Please give me some wise words i don't know why you're not working",
"stream": false
}'
I also tried using rpi.local:11434 as the base URL - which works on my mac terminal - but still not in the n8n node which comes out with the same error.
This is why the Information on your n8n setup section exists when you create a new post. If you fill out the details when creating a post, it saves everyone time in the long run.
either way, the issue is that docker containers run in their own network by default, and localhost inside a container often means the container, and not the host machine.
can you please try this.