Getting connection lost for 10KB data whenver http runs in my workflow - ResponseError: Invalid value "undefined" for header "SUM"

Data set size is less than 10 KB

getting this error in server log when connection lost message receive

ResponseError: Invalid value “undefined” for header “SUM”

Aug 16 15:00:40 at Object.executeWebhook (/app/code/node_modules/n8n/dist/src/WebhookHelpers.js:407:15)

Aug 16 15:00:40 at runMicrotasks ()

Aug 16 15:00:40 at processTicksAndRejections (node:internal/process/task_queues:96:5)

My environment file

export EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=true
export EXECUTIONS_DATA_SAVE_ON_ERROR=all
export EXECUTIONS_DATA_SAVE_ON_SUCCESS=all
export N8N_LOG_LEVEL=info

export EXECUTIONS_DATA_PRUNE=true
export EXECUTIONS_DATA_MAX_AGE=672
export N8N_PAYLOAD_SIZE_MAX=3096
export N8N_LOG_FILE_SIZE_MAX=128

Hey @Priya_Kumar,

Does it always fail when you run that workflow? I know you said the dataset size is less than 10KB there are 500+ items on that bottom part are you sure it is less than 10kb?

Could it be another workflow running causing the issue, What happens if you do a check for the SUM header value as well and if not set exit the workflow or do something else?

Was there also anything else in the log?

pls check http receives only 10 items

it is causing due to this workflow only.

i don’t have anything called SUM in header value

Log for your information

Aug 16 15:40:25 ERROR RESPONSE

Aug 16 15:40:25 Error: There was a problem executing the workflow

Aug 16 15:40:25 at Object.executeWebhook (/app/code/node_modules/n8n/dist/src/WebhookHelpers.js:405:30)

Aug 16 15:40:25 at processTicksAndRejections (node:internal/process/task_queues:96:5)

Aug 16 15:40:25 /app/code/node_modules/n8n/dist/src/WebhookHelpers.js:407

Aug 16 15:40:25 throw new _1.ResponseHelper.ResponseError(e.message, 500, 500);

Aug 16 15:40:25 ^

Aug 16 15:40:25

Aug 16 15:40:25 ResponseError: Invalid value “undefined” for header “SUM”

Aug 16 15:40:25 at Object.executeWebhook (/app/code/node_modules/n8n/dist/src/WebhookHelpers.js:407:15)

Aug 16 15:40:25 at processTicksAndRejections (node:internal/process/task_queues:96:5) {

Aug 16 15:40:25 errorCode: 500,

Aug 16 15:40:25 httpStatusCode: 500

Aug 16 15:40:25 }

Aug 16 15:40:26 => Ensure directories

Aug 16 15:40:26 => Loading configuration

Aug 16 15:40:26 => Setting permissions

Aug 16 15:40:26 => Starting N8N

Aug 16 15:40:27

Aug 16 15:40:27 Loading configuration overwrites from:

Aug 16 15:40:27 - /app/data/configs/default.json

Aug 16 15:40:27

Aug 16 15:40:28 Initializing n8n process

Aug 16 15:40:31 n8n ready on 0.0.0.0, port 5678

Aug 16 15:40:31 Version: 0.190.0

Hey @Priya_Kumar,

Are you sure there is no SUM header? It could be that the service you are connecting to is expecting this header then which is why the log is mentioning it.

Aug 16 15:40:25 ResponseError: Invalid value “undefined” for header “SUM”

I was asking around other workflows as under it there is a mention of the WebhookHelper but that could share bits so may be nothing to worry about.

I would look into that header that is causing an error and see what is going on, I thought we would handle it better and rather than crash we should just return the error so something a bit odd is going on.

Is the service you are connecting to internal?

Thanks for your quick response

there is no sum header needed for my http request so i didn’t add it.

I am hitting another app run the same server through http node.

Hi,

Found the issue. when this workflow hits my another app, another app trigger one more webhook called returns SUM header which is not active in n8n now which is causing this issue.

1 Like

That will do it and explains the errors, So all is good now then?

Yes it is. Thanks a lot for your support Jon

1 Like