UPDATEn8n n8n@2.50.4
n8n 2.50.4: reconnect links and files tied to their run
n8n 2.50.4 is a patch on the 2.50 line: a rejected refresh token no longer leaves callers stuck, model errors that retrying cannot fix stop after one attempt, and a file a trigger stores before its run exists is attached to that run. Teams on queue workers or end-user OAuth2 credentials should read it first.
What changed in this release
19 checkpoints in 5 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.
Credentials and connections
- A refresh token the provider rejects is deleted from the caller's stored connection
- The next call returns 428 with a connect link instead of failing with 500
- Only the rejected token is deleted, so a token from a reconnect or a parallel refresh stays
- The call that receives invalid_grant still fails; recovery starts with the next call
Model call retries
- Context overflow and HTTP 422 stop at the first failure instead of retrying
- Such errors come back as a workflow warning after the first attempt instead of an unexpected error
- Temporary failures keep their existing retry behaviour
Run artifacts
- In database mode a file a trigger stored early gets the execution ID when the run ends, so the editor can view and download it
- In filesystem and s3 mode the file moves from the temporary path to its execution's path
- This also covers runs that end on a queue worker and triggers that are not a Webhook node
- Evaluation runs store one output per test case, including the default Set Outputs
AI Builder approvals
- Assistant threads that build or edit an agent follow the approval mode you picked
- These threads and the Agent Builder assistant panel show the approval mode selector again
- Publishing an agent under Approve for me still asks, and tool approvals in a draft agent's test run still show a card
- Two new judging lines: saving an edit does not run it, and an added send step is judged by whether you asked for it
Expression runtime
- lodash isEqual, uniqWith and random plus md5, jssha and jmespath now start up on first call
- Creating an isolate on isolated-vm drops from 4.73 ms to 3.56 ms (25%)
- With N8N_EXPRESSION_ENGINE_COMPILE_CACHE=true it drops from 2.31 ms to 1.28 ms (45%)
- unique and randomItem set up lodash on first call, so a replaced built-in makes them throw
On this page
ContextThis patch only changes what happens after a failure and after a run ends
When a workflow misbehaves the cause is rarely a wrong node setting. It is usually an expired credential, a model error, or a file nobody can find afterwards. Every change here sits there: a revoked OAuth2 grant, a model error retrying cannot fix, a file a trigger stored before its run had an ID, empty evaluation outputs, and the cost of a fresh isolate.
No node parameters and no flow structure change. What changes is how a failure is reported, which run owns a file, and where an output is stored. Instances that only run manual executions with admin-managed credentials barely notice; those on end-user credentials or queue workers feel it at once.
The changes fall into five groups: credentials and connections, model call retries, run artifacts, AI Builder approvals, and the expression runtime. The figure below shows how many rows each group holds: the five groups land at three or four rows each, with run artifacts level with the rest. The sections that follow take each change in turn.
A rejected refresh token is deleted and the caller gets a connect link back
- Connect link: on invalid_grant n8n deletes the caller's stored token, so the next call returns 428 with a connect link instead of 500.
- Only the right token: n8n deletes it only while it still holds the rejected one, so a token from a reconnect or a parallel refresh survives.
- That call still fails: the call that got invalid_grant reports the reconnect error because its execution already started; the next call recovers.
Context overflow and HTTP 422 stop after one attempt, temporary failures still retry
- No retry: context overflow and HTTP 422 cannot be fixed by sending the same request again, so the attempt ends at the first failure.
- Reported as a warning: the provider error comes back as a workflow warning after the first attempt instead of an unexpected error.
- Boundary: temporary failures keep their existing retry behaviour; this release does not change them.
A file a trigger stored early is attached to its run once the run ends
- database mode: the binary_data row gets the execution ID, so View and Download in the editor stop returning 404.
- filesystem and s3 mode: the file moves to its execution's path, so pruning finds it; this also covers queue workers and non-Webhook triggers.
- Boundary: all three storage modes are covered; Engine v2 is out of scope.
Evaluation runs keep per-test-case outputs, including queue mode with offload on
- Per case: a missing operation on the Evaluation node is now treated as Set Outputs by every caller, so each test case keeps its own output.
- Trigger: outputs were lost only when EXECUTIONS_MODE=queue and OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true were both on.
- Scope: the change sits in output capture only, so evaluation flows and metric nodes stay as they are.
Assistant threads that build agents follow your approval mode, publishing still asks
- Selector back: agent-building threads follow your picked mode, not Ask for approval, and the selector shows in the chat input and Agent Builder panel.
- Two places still ask: publishing an agent under Approve for me always asks, and tool approvals in a draft agent's test run keep their card.
- Two new judging lines: saving an edit does not run it, so an added send step is judged by whether you asked for it; unexpected writes still ask.
Rarely used expression libraries load on first call, so isolates start faster
- On demand: the setup of lodash isEqual, uniqWith and random, plus md5, jssha and jmespath, moves from bundle load to first call.
- Vendor numbers: isolate creation on isolated-vm drops from 4.73 ms to 3.56 ms (25%), and from 2.31 ms to 1.28 ms (45%) with the compile cache on.
- Cost: unique and randomItem set up lodash on first call, so a replaced built-in such as Object.keys makes them throw.
On the same steps Dify leaves the choice to the node panel and LangGraph to code
All three tools have a mechanism for these steps; they place it differently. n8n moves the judgement into the runtime, Dify turns the behaviour after a failure into a node option, and LangGraph takes a retry policy per node in code.
Which one to pick depends on who edits the flow: code with fine control per exception type fits LangGraph at the cost of a policy per node, a canvas fallback is quicker with a Dify fail branch at the cost of configuring every node, and this patch saves that configuration but keeps the judgement out of your hands.
Read the table by its first column: who decides each step, and whether that decision sits in configuration, in code or in the runtime.
| Update | Dify 1.20.0 | LangGraph 1.2.24 / LangSmith | n8n 2.50.4 |
|---|---|---|---|
| Permanent errors retried again | LLM, HTTP, Code and Tool nodes each pick none, a default value or a fail branch; the branch reads error_type | RetryPolicy per node; by default it retries everything except ValueError, TypeError, OSError, and HTTP clients retry only on 5xx | Context overflow and HTTP 422 stop at the first failure and come back as a workflow warning |
| Which run owns an artifact | One Run History entry per run, at application and node level; a node panel shows that node's last input and output | A checkpointer writes the graph state of a thread as checkpoints a run can resume from | A file a trigger stored early gets the execution ID when the run ends, so the editor can view and download it |
| Where each case's result is stored | A batch run executes one CSV row at a time and can export all results as a CSV | On the LangSmith side the evaluator scores a single example's inputs, outputs and reference outputs | Evaluation runs store one output per test case, and a missing operation counts as Set Outputs |
| Who approves an assistant's change | The build chat edits the panel; Apply keeps it, Discard drops it, the first Apply leaves build_note.md | A node calls interrupt() to pause for a person and resumes with Command(resume=...) | Threads that build agents follow the user's approval mode; publishing under Approve for me still asks |
2.50.3 shipped two editor changes; this patch touches five mechanisms at once
On this line the previous patch was 2.50.3 (2026-11-27) and it stayed in the editor: a stopped agent chat shown as a status line, thinking and tool calls folded into one trace. For instances already on 2.50.3 this release adds the five runtime fixes.
Read the credential and file rows first: they decide whether you can recover on your own and whether disk use grows quietly. The expression engine row is about isolated-vm, where isolates start faster and use less memory.
The rows that stop after one attempt deserve a closer look: on 2.50.3 those errors were retried and ended as an unexpected error, while 2.50.4 returns them as a workflow warning after the first try. In reconciliation flows, resending a request usually costs more than failing once, which is what this change targets.
2.49.9, shipped the same day on the stable channel, carried the same runtime fixes, so an instance coming from 2.49.9 sees only the approval change as new.
| Feature | 2.50.3 · 2026-11-27 | 2.50.4 · 2026-11-30 |
|---|---|---|
| Caller OAuth2 refresh token rejected | The rejected token stayed stored and webhook calls returned 500 with no connect link | The token is deleted on invalid_grant and the next call returns 428 with a connect link |
| Context overflow and HTTP 422 | Retried like any other failure and reported as an unexpected error | Returned as a workflow warning after the first attempt instead of an unexpected error |
| File a trigger stored early (database mode) | Only a placeholder execution ID, so View and Download returned 404 | The execution ID is written when the run ends, so the file can be viewed |
| File a trigger stored early (filesystem and s3) | Stayed on the temporary path, where pruning never found it | Moves to its execution's path, on queue workers and non-Webhook triggers too |
| Evaluation output per test case (queue with offload) | Each test case stored an empty output | A missing operation counts as Set Outputs, so the real output is stored |
| Approval in threads that build agents | Always Ask for approval, with no selector in the chat input | Follows the user's mode, with the selector in the thread and the Agent Builder panel |
| Expression runtime library loading | Every isolate ran the setup of lodash, md5, jssha and jmespath | Loaded on first call, so isolate creation drops from 4.73 ms to 3.56 ms |
Release analysisQueue workers and end-user credentials should upgrade first; manual-only instances can wait
Three kinds of instance are affected most: those calling out with end-user OAuth2 credentials, those on queue workers with manual-execution offload on, and those reading evaluation outputs per test case. In all three the failure happens after a run, where people used to dig through logs.
Set against comparable tools: Dify makes the behaviour after a failure a node option for whoever builds the flow, and its branch sorts errors by error_type; LangGraph takes a retry policy per node in code and by default skips ValueError or OSError. This patch moves the judgement into the runtime, saving per-node configuration but taking the per-node override away.
Our advice: upgrade to 2.50.4 first, then look at the data. Under filesystem and s3 mode, temporary files from earlier runs carry no execution ID, so pruning never reaches them. That is a station claim we have not tested; back up binary_data and the storage directory first.
What not to do: do not treat 428 as a success code in monitoring, it means the caller has to reconnect; and do not touch Engine v2 settings, since the fix description puts it out of scope. To verify, revoke a test end-user grant and watch the second call.
AIGenLab views
Not independently testedInstances that call out with end-user OAuth2 credentials should put 2.50.4 ahead of their usual cadence, since a rejected token no longer keeps webhooks on 500.
Based on the behaviour before the fix and the 428 connect link as the fix description records them; we did not reproduce it on an instance.
Under filesystem and s3 mode someone has to clear temporary files left by earlier runs after upgrading, because pruning by execution ID never reaches them.
The fix description states pruning deletes by execution ID, while the old files stayed on the temporary path without one; a station claim, not tested independently.
The isolate-creation gain sits on isolated-vm, so QuickJS deployments need not upgrade for that speed number.
The PR states that isolated-vm gets the full gain and gives the 4.73 ms to 3.56 ms readings; a station claim, not tested independently.
Questions
Do I need to change workflow parameters for 2.50.4?
Why were evaluation outputs empty on the previous version?
What needs manual work after upgrading?
Official sources and scope
- n8n@2.50.4 release Version, release date, and the five fixes plus one performance improvement in this release
- n8n@2.50.3 release The scope of the previous release, used for the version comparison
- PR #45453 OAuth2 refresh token rejected Token deletion on invalid_grant and the 428 connect-link behaviour
- PR #45464 stop retrying permanent LLM errors Context overflow and 422 no longer retried, returned as a warning
- PR #45519 binary data assigned to its execution File ownership in the three storage modes, the 404 and pruning behaviour
- PR #45649 evaluation outputs per test case Per-test-case output capture and the queue-plus-offload trigger
- PR #45547 approval modes in agent-building threads Approval mode inheritance, the selector, and the two places that still ask
- PR #45602 lazy expression runtime libraries The 4.73 ms to 3.56 ms isolate numbers and the behaviour change
- Dify Handle Errors Dify's three failure behaviours and the error_type variable
- Dify Error Types Dify's rate limit, quota and 503 error classes
- Dify Run History Dify's application-level and node-level record per run
- Dify Build an Agent Dify's build chat, Apply and Discard, and build_note.md
- Dify workflow web apps Dify batch runs one execution per CSV row and can export the results
- LangGraph node retry policies RetryPolicy's default retry set and the 5xx rule
- LangGraph interrupts interrupt pausing for approval and Command(resume) resuming
- LangGraph persistence The checkpointer saving graph state per thread
- langgraph on PyPI The LangGraph version 1.2.24 used in the comparison table
- LangSmith how to evaluate agents The evaluator scoring a single example's inputs, outputs and reference outputs
Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.