Uploading files to Dropbox larger than 100 MB

Describe the problem/error/question

Hello. I encountered a problem where when uploading files to Dropbox, if the file was larger than 80-100 MB, I received an error saying the file was too large and there wasn’t enough memory to process it. The recording was being done to memory. I switched to disk recording, and now I’ve encountered a different problem. Now files aren’t transferred at all. When uploading to Dropbox, I get the error “Invalid array length.”
n8n version
2.13.2 (Self Hosted)
Stack trace
RangeError: Invalid array length at Object.keys () at ExecuteContext.dropboxApiRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@aws-sdk+credential-providers@3.808.0_asn1.js@5_8da18263ca0574b0db58d4fefd8173ce/node_modules/n8n-nodes-base/nodes/Dropbox/GenericFunctions.ts:33:14) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@aws-sdk+credential-provide rs@3.808.0_asn1.js@5_8da18263ca0574b0db58d4fefd8173ce/node_modules/n8n-nodes-base/nodes/Dropbox/Dropbox.node.ts:906:45) at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+e xporter-trace-otlp_9f358c3eeaef0d2736f54ac9757ada43/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1043:8) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+ex porter-trace-otlp_9f358c3eeaef0d2736f54ac9757ada43/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1222:11) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+ex porter-trace-otlp_9f358c3eeaef0d2736f54ac9757ada43/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1668:27 at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_9f358c3eeaef0d2736f54ac9757ada43/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2313:11
Can you please tell me how to fix this so that everything loads correctly in Dropbox?

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Stack trace
RangeError: Invalid array length at Object.keys () at ExecuteContext.dropboxApiRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@aws-sdk+credential-providers@3.808.0_asn1.js@5_8da18263ca0574b0db58d4fefd8173ce/node_modules/n8n-nodes-base/nodes/Dropbox/GenericFunctions.ts:33:14) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@aws-sdk+credential-provide rs@3.808.0_asn1.js@5_8da18263ca0574b0db58d4fefd8173ce/node_modules/n8n-nodes-base/nodes/Dropbox/Dropbox.node.ts:906:45) at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+e xporter-trace-otlp_9f358c3eeaef0d2736f54ac9757ada43/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1043:8) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+ex porter-trace-otlp_9f358c3eeaef0d2736f54ac9757ada43/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1222:11) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+ex porter-trace-otlp_9f358c3eeaef0d2736f54ac9757ada43/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1668:27 at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_9f358c3eeaef0d2736f54ac9757ada43/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2313:11
Can you please tell me how to fix this so that everything loads correctly in Dropbox?

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @AdeianDelRey Welcome!
In cases of direct file upload there is very less room for workflow improvements, as the error suggests that it needs more memory to compute that operation, the best solution for this would be upgrading your VPS to a higher spec.

Hello. I upgraded to 4GB immediately, but the error persists. I even tried different versions – the result is the same (2.11.2 - 2.13.2).

@AdeianDelRey specifically for that range error it is already a reported issue you can see it here:

And for the out of memory, i think you should try this:

@AdeianDelRey the Dropbox node itself is choking on big binaries, skip it entirely and hit the Dropbox content API with an HTTP Request node instead — streams way better for large files.

swap out your Dropbox node for this HTTP Request node, plug in your Dropbox OAuth2 creds and fix the path expression to match your naming format.

achamm Thanks for the recommendation. I still have a problem: files larger than 500 MB won’t upload when a “Bad request” message appears. Please check your parameters. Files smaller than 200 MB upload correctly.

Problem in node ‘Dropbox Finish Upload‘ Your request is invalid or could not be processed by the service

It crashes with an error if the file is larger than 600 MB, which is strange. Please tell me how to upload larger files via Dropbox?