mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
🐛 Fix n8n's behavior for empty response bodies (#2246)
* Fixed n8n's behavior for empty response bodies * Correctly parsing empty bodies when expected output is a buffer
This commit is contained in:
@@ -896,7 +896,11 @@ export class WorkflowExecute {
|
||||
// the `error` property.
|
||||
for (const execution of nodeSuccessData!) {
|
||||
for (const lineResult of execution) {
|
||||
if (lineResult.json.$error !== undefined && lineResult.json.$json !== undefined) {
|
||||
if (
|
||||
lineResult.json !== undefined &&
|
||||
lineResult.json.$error !== undefined &&
|
||||
lineResult.json.$json !== undefined
|
||||
) {
|
||||
lineResult.error = lineResult.json.$error as NodeApiError | NodeOperationError;
|
||||
lineResult.json = {
|
||||
error: (lineResult.json.$error as NodeApiError | NodeOperationError).message,
|
||||
|
||||
Reference in New Issue
Block a user