I’m have been trying to connect with NocoDB locally. Both instances(n8n and nocodb) are running in a docker in localhost. I’m sure the nocodb running in port 8080 and it is accessible(tested with curl request able to get records from DB). When executing workflow from n8n, nocodb node says unable to fetch project details.
Please assist with this issue.
What is the error message (if any)?
I have inspected the browser fetch request,
Error while fetching projects! 2. Error while fetching tables!
Yes, I have followed the credentials setup from documentation(both auth token and API token used) I’m pretty sure the credentials are valid.
Information on your n8n setup
**Database you’re using (default: SQLite):default
**Running n8n with the execution process [own(default), main]:default
**Running n8n via [Docker, npm, n8n.cloud, desktop app]:docker and localhost
In n8n if you are setting the NocoDB host to localhost it won’t work as NocoDB is not running on the n8n container at the localhost address.
Localhost is typically 127.0.0.1 which will be itself so localhost on n8n, NocoDB and your host machine all point to a different thing. When you use docker it does some networking machine which allows docker to listen on the hosts localhost address and it will pass the connections to the containers.
This doesn’t do it for the containers though as they are treated as their own separate space so instead you would need to use the 172.17.0.1 address which is the default docker network or use the containers name / ip if you have docker configured for that.