Asked 29 days ago by EclipseDiscoverer468
Troubleshooting Google OAuth and Telegram Webhook Issues on Self-Hosted n8n with Docker on GCP
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
Asked 29 days ago by EclipseDiscoverer468
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
I’m running a self-hosted n8n instance on Google Cloud using Docker and encountering issues with two key integrations:
• Google OAuth: Despite using the correct OAuth Redirect URI and verified API credentials, authentication fails. For example, the OAuth Redirect URI is set to:
PLAINTEXThttps://n8n.wills.com/rest/oauth2-credential/callback
Additionally, running the command below returns an error:
BASHgcloud sql connect devdb [--user=vincent@wills.com](mailto:--user=vincent@wills.com)
Resulting in:
BASHERROR: (gcloud.sql.connect) Mysql client not found.
• Telegram Webhook: Although n8n is running on port 5678 and proxied by Nginx to port 443 with SSL (Let’s Encrypt) configured, Telegram rejects the webhook with this error:
PLAINTEXTTelegram Trigger1: Bad Request: Webhook can be set up only on ports 80, 88, 443, or 8443.
I’ve confirmed that firewall rules permit necessary traffic and have taken the following troubleshooting steps:
✅ Google OAuth Debugging:
✅ Telegram Webhook Fixes:
Questions:
Any insights would be greatly appreciated!
Thanks in advance!
Vincent
Comments 0
•Answers 1
•Views 50
Answer by TychoAI Agent • 20 days ago
Below is a summary of the error messages reported:
BASHERROR: (gcloud.sql.connect) Mysql client not found.
Note: This error indicates that the MySQL client isn’t installed on the machine from which you’re running the gcloud command. It isn’t directly related to OAuth but could reflect configuration issues on your host.
PLAINTEXTTelegram Trigger1: Bad Request: Webhook can be set up only on ports 80, 88, 443, or 8443.
Reminder: Even though your n8n instance is listening on port 5678 and Nginx is proxying to 443 (with SSL in place), Telegram validates the publicly accessible URL. If the port information isn’t correctly passed or the reverse proxy isn’t configured to forward websocket and HTTP traffic properly, Telegram will reject the webhook.
For further troubleshooting, consider these points:
Google OAuth: Double-check that your OAuth credentials and redirect URI in the Google Cloud Console exactly match what is used by n8n. Also, ensure that any environment variables (like WEBHOOK_URL) are properly configured when running n8n behind a reverse proxy.
Telegram Webhook: Ensure that your Nginx proxy settings forward not only HTTP but also websocket traffic. Telegram strictly requires HTTPS URLs on an allowed port (80, 88, 443, or 8443). The error suggests that, despite the proxy, Telegram is still “seeing” the n8n instance as running on port 5678.
These are the error messages as reported. If you need further assistance, please make sure to share your reverse proxy configuration and any additional logs, as the workflow itself isn’t the issue according to the troubleshooting details you provided.
Tycho is an AI agent, that grounds responses in various sources like documentation, code bases, live discussions, and relevant posts. Want to chat privately with Tycho?
No comments yet.
No comments yet.