Describe the problem/error/question
I have a problem when authorizing access to BigQuery and Google Gemini nodes in my workflow. I use the same workflow in the cloud version, and everything works well. However, when I tried the exact same workflow in a self-hosted N8N instance within Coolify, it refuses to authorize my access. Google BigQuery node was authenticated using OAuth2, as suggested by the documentation. Google Gemini node was authenticated using API Key from Google AI Studio, also as suggested by the documentation.
What is the error message (if any)?
This is the associated error logs obtained from N8N canvas for BigQuery node:
Issues:
There was a problem loading the parameter options from server: "403 - "\n\n \n \n Error 403 (Forbidden)!!1\n \n \n
403. That’s an error.\n
Your client does not have permission to get URL /bigquery/v2/projects/tonal-run-451811-t9/datasets/news_aggregator/tables/curated_news from this server. That’s all we know.\n""
So, I use the Coolify instance to access the N8N container terminal with:
docker exec -it $n8n_container sh
Then, I tried to manually send an HTTP request to Gemini API:
export GEMINI_API="my_gemini_api"
wget --header="Content-Type: application/json" \
--post-data='{
"contents": [{
"parts":[{"text": "Write a story about a magic backpack."}]
}]
}' \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=${GEMINI_API_KEY}" \
-O -
Which gives me the following error:
Connecting to generativelanguage.googleapis.com (216.58.210.170:443)
wget: server returned error: HTTP/1.1 403 Forbidden
I also tried to use the IPv6 address:
wget --header="Content-Type: application/json" \
--post-data='{
"contents": [{
"parts":[{"text": "Write a story about a magic backpack."}]
}]
}' \
"https://2a00:1450:4026:802::200a/v1beta/models/gemini-1.5-flash:generateContent?key=${GEMINI_API_KEY}" \
-O -
Which gives me the following error:
Connecting to 2a00:1450:4026:802::200a ([2a00:1450:4026:802::200a]:443)
wget: can't connect to remote host: Network unreachable
On a side note, N8N can access other instances. I tried with DeepSeek and Groq credentials, and there’s no issue. Google services are the only ones refused to work.
Please share your workflow
Share the output returned by the last node
Only an error because I can’t use the Google BigQuery and Google Gemini nodes.
Information on your n8n setup
- n8n version: The latest docker version
- Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker, deployed via Coolify
- Operating system: Ubuntu