Notion EAI_AGAIN fails for executions but works for manual runs

Describe the problem/error/question

Having a workflow with a Notion Trigger results in DNS EAI_AGAIN errors when automated, but running the workflows manually works fine, same getting test data from notion.

Networking seems fine since I can use HTTP nodes to download webs

What is the error message (if any)?

{
    "message": "getaddrinfo EAI_AGAIN api.notion.com",
    "name": "Error",
    "stack": "Error: getaddrinfo EAI_AGAIN api.notion.com\n at Function.AxiosError.from (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/AxiosError.js:92:14)\n at ClientRequest.handleRequestError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:620:25)\n at ClientRequest.emit (node:events:524:28)\n at emitErrorEvent (node:_http_client:101:11)\n at TLSSocket.socketErrorListener (node:_http_client:504:5)\n at TLSSocket.emit (node:events:524:28)\n at emitErrorNT (node:internal/streams/destroy:169:8)\n at emitErrorCloseNT (node:internal/streams/destroy:128:3)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)\n at Axios.request (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/Axios.js:45:41)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at invokeAxios (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/node-execution-context/utils/request-helper-functions.js:173:16)\n at proxyRequestToAxios (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/node-execution-context/utils/request-helper-functions.js:513:26)\n at PollContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/node-execution-context/utils/request-helper-functions.js:974:16)\n at PollContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/node-execution-context/utils/request-helper-functions.js:1147:20)\n at PollContext.notionApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Notion/shared/GenericFunctions.js:99:14)\n at PollContext.poll (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Notion/NotionTrigger.node.js:200:29)\n at TriggersAndPollers.runPoll (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/triggers-and-pollers.js:59:16)\n at executeTrigger (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/active-workflows.js:78:38)",
    "code": "EAI_AGAIN"
}

Please share your workflow

The workflow is just a Notion Trigger with “PageAddedToDatabase”.

Information on your n8n setup

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

After checking out a lot of things from the internet and AI models, I ended up replicating the flow (copied and pasted all nodes) into a new one and that flow started working as usual.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.