Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Email Trigger (IMAP) Node): Reconnect not working correctly #10064

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

ShireenMissi
Copy link
Contributor

Summary

On disconnect even with the reconnect option enabled the node is not connecting again so the workflow shows as being active but isn't.

To fix this issue, the call to closeFunction upon IMAP connection errors is removed. This change prevents the workflow from being deactivated.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-1400/imap-node-reconnect-not-working-correctly

GH Issue:

#9666

Community Issue:

https://community.n8n.io/t/n8n-bug-report-imap-trigger-not-working-after-a-period-of-time/47796

https://community.n8n.io/t/imap-trigger-not-working-after-a-period-of-time/49470

Zammad:

https://support.n8n.io/#ticket/zoom/6159

https://support.n8n.io/#ticket/zoom/6184

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

Copy link
Member

@netroy netroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this. This is the correct behavior. No node should be calling closeFunction() anyways, since that's the responsibility of the engine core.

@netroy netroy changed the title fix(IMAP Node): Reconnect not working correctly fix(Email Trigger (IMAP) Node): Reconnect not working correctly Jul 15, 2024
Copy link

cypress bot commented Jul 15, 2024

4 flaky tests on run #5941 ↗︎

0 400 0 0 Flakiness 4

Details:

🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
Project: n8n Commit: 68d5d7e2e9
Status: Passed Duration: 05:20 💡
Started: Jul 16, 2024 3:12 AM Ended: Jul 16, 2024 3:17 AM
Flakiness  10-undo-redo.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Undo/Redo > should undo/redo adding nodes Test Replay Screenshots Video
Flakiness  5-ndv.cy.ts • 2 flaky tests

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
NDV > Stop listening for trigger event from NDV Screenshots Video
Flakiness  20-workflow-executions.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Current Workflow Executions > should auto load more items if there is space and auto scroll Test Replay Screenshots Video

Review all test suite changes for PR #10064 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@ShireenMissi ShireenMissi merged commit 68d5d7e into master Jul 15, 2024
27 of 28 checks passed
@ShireenMissi ShireenMissi deleted the node-1400 branch July 15, 2024 16:20
@github-actions github-actions bot mentioned this pull request Jul 17, 2024
@janober
Copy link
Member

janober commented Jul 17, 2024

Got released with n8n@1.51.0

@steebchen
Copy link

Thanks! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants