Telegram Gateway Timeout

I’ve encountered an intermittent error 504 in telegram node. This problem happens when sending a photo or downloading a file in telegram nodes. It started a few days ago and occurs from time to time.

Error log:

{
  "errorMessage": "Gateway timed out - perhaps try again later?",
  "errorDescription": "Gateway Timeout",
  "errorDetails": {
    "rawErrorMessage": [
      "504 - {\"ok\":false,\"error_code\":504,\"description\":\"Gateway Timeout\"}"
    ],
    "httpCode": "504"
  },
  "n8nDetails": {
    "nodeName": "Telegram6",
    "nodeType": "n8n-nodes-base.telegram",
    "nodeVersion": 1.2,
    "resource": "message",
    "operation": "sendPhoto",
    "time": "11/3/2024, 6:06:10 PM",
    "n8nVersion": "1.65.2 (Cloud)",
    "binaryDataMode": "filesystem",
    "stackTrace": [
      "NodeApiError: Gateway timed out - perhaps try again later?",
      "    at Object.apiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Telegram/GenericFunctions.js:115:15)",
      "    at processTicksAndRejections (node:internal/process/task_queues:95:5)",
      "    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Telegram/Telegram.node.js:1758:36)",
      "    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:722:19)",
      "    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:707:51",
      "    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1137:20"
    ]
  }
}

Node workflow:

n8n setup
n8n version: 1.65.2
Running n8n via n8n cloud

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

I’ve listed the cloud version of the n8n at the end of the post.

In the Telegram credentials, did you touch the Base URL by any chance? It’s supposed to say https://api.telegram.org.

No. I didn’t change anything. It’s https://api.telegram.org