Triggers are not working (gmail primarily)

Describe the problem/error/question

Execution triggers are in a complete hanging state for my gmail-received workflows. I have had the gmail user create new credentials but it is still borked. The executions are perpetually in a “queued” state and are not firing off even though trigger events are occurring (the user is receiving emails). When I manually send the user an email, it still doesn’t trigger an execution. It is able to pull it in as a test, but not trigger executions

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.) {
  "name": "Copy Project Prometheus - Email Watching Tool",
  "nodes": [
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "filters": {
          "readStatus": "both"
        }
      },
      "type": "n8n-nodes-base.gmailTrigger",
      "typeVersion": 1.3,
      "position": [
        0,
        0
      ],
      "id": "5750b9f7-f616-4c1d-a0f6-f081ef1e4244",
      "name": "Gmail Trigger",
      "credentials": {
        "gmailOAuth2": {
          "id": "YOUR_GMAIL_CREDENTIAL_ID",
          "name": "Your Gmail Account"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "46814b6e-2d53-4653-87c0-e2391eaf7415",
              "leftValue": "={{ $json.From }}",
              "rightValue": "octavehq.com",
              "operator": {
                "type": "string",
                "operation": "notContains"
              }
            },
            {
              "id": "06d4960f-b762-40f8-9875-ce882112d95e",
              "leftValue": "={{ $json.From }}",
              "rightValue": "gmail.com",
              "operator": {
                "type": "string",
                "operation": "notContains"
              }
            },
            {
              "id": "655df97f-0b2b-4c01-ba79-caa9c1e8e713",
              "leftValue": "={{ $json.From }}",
              "rightValue": "outlook.com",
              "operator": {
                "type": "string",
                "operation": "notContains"
              }
            },
            {
              "id": "2271609a-e22f-4b4a-8382-697358e06314",
              "leftValue": "={{ $json.From }}",
              "rightValue": "no-reply",
              "operator": {
                "type": "string",
                "operation": "notContains"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2.3,
      "position": [
        208,
        0
      ],
      "id": "386c0bab-24e2-45bd-8798-c85e18fdc1e1",
      "name": "Filter"
    },
    {
      "parameters": {
        "operation": "get",
        "messageId": "={{ $json.id }}",
        "simple": false,
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.2,
      "position": [
        416,
        0
      ],
      "id": "a321b299-efa9-40f3-93e2-1bdc873dc178",
      "name": "Get a message",
      "webhookId": "YOUR_WEBHOOK_ID",
      "credentials": {
        "gmailOAuth2": {
          "id": "YOUR_GMAIL_CREDENTIAL_ID",
          "name": "Your Gmail Account"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.clay.com/v3/sources/webhook/YOUR_CLAY_WEBHOOK_ID",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "outboundEmailBodyWeReceived",
              "value": "={{ $json.text }}"
            },
            {
              "name": "outboundEmailSubjectWeReceived",
              "value": "={{ $json.subject }}"
            },
            {
              "name": "senderObject",
              "value": "={{ $json.from }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        624,
        0
      ],
      "id": "28460aee-4fc9-4703-869f-cb8e10772f8f",
      "name": "HTTP Request"
    }
  ],
  "pinData": {},
  "connections": {
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Get a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a message": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "timeSavedMode": "fixed",
    "callerPolicy": "any",
    "availableInMCP": false
  },
  "versionId": "YOUR_VERSION_ID",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "YOUR_INSTANCE_ID"
  },
  "id": "YOUR_WORKFLOW_ID",
  "tags": []
}

Share the output returned by the last node

Not even reaching first node.

Information on your n8n setup

I just updated since I thought that might fix it, was 7 versions behind prior.

  • n8n version: 2.6.4

  • Database (default: SQLite): none

  • n8n EXECUTIONS_PROCESS setting (default: own, main): n8n cloud so not applicable

  • Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud

  • Operating system: n8n cloud so not applicable

1 Like

Hi @Nalin_Krishnan It really works on my end, have you tried toggling between interval settings? From everyMinute to everyHour and see that does it bring any change cause this is not a known issue and Gmail trigger is one of the finest working APIs configured on n8n i would say, let me know when what works in this. {Republishing your workflow Might Also Bring Some Help}

1 Like

Hi Anshul toggling interval settings doesn’t seem to help, neither does republishing (or even duplicating) the workflow

it is odd since it is saying some executions are succeeding, but when looking at the execution it shows that none of the nodes were triggered (which they were not)

2 Likes

@Nalin_Krishnan Have you tried using this on a different gmail account? By signing in with another Gmail? Again you always can test things out using IMAP. Maybe letting it set for a coffee break? As you have mentioned some executions work perfectly. Giving it some time would help.

yeah it’s just not working. it is just not clocking any new emails received

1 Like

Does IMAP trigger gives the same situation like Gmail trigger? With another gmail account the issue is still the same? I Guess trying out IMAP node is something you could test.

it’s fixed i think, the credential was somehow not shared to the workflow :man_facepalming: thank you!

Glad it is fixed! Mark this question as a solution so that other’s know what is right!
Cheers!

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