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

Google Drive Node "Invalid array length" #13837

Open
Nick-PDS opened this issue Mar 11, 2025 · 6 comments
Open

Google Drive Node "Invalid array length" #13837

Nick-PDS opened this issue Mar 11, 2025 · 6 comments
Labels
in linear Issue or PR has been created in Linear for internal review Needs Feedback Waiting for further input or clarification.

Comments

@Nick-PDS
Copy link

Bug Description

When attempt to upload, in my case, a 200 MB zip file to Google Drive using the Google Drive node I get this stack trace error

Noticed a similar trace error in a different issue using a different node. #12570

NodeApiError: Invalid array length at ExecuteContext.googleApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Drive/v2/transport/index.js:38:15) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js:76:61) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ExecuteContext.router (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Drive/v2/actions/router.js:58:41) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js:16:16) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:687:27) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:919:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1252:20

To Reproduce

Using the google drive node, attempt to upload a roughly 200 MB zip file to your drive's root folder.

Expected behavior

Complete the task

Operating System

Ubuntu Linux 22.04

n8n Version

1.82.1 (previously 1.80 was also causing this error)

Node.js Version

20.18.3

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Mar 11, 2025

Hey @Nick-PDS,

We have created an internal ticket to look into this which we will be tracking as "GHC-1151"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Mar 11, 2025
@Joffcom
Copy link
Member

Joffcom commented Mar 11, 2025

Hey @Nick-PDS,

Are you using the filesystem binary data mode?

@Joffcom Joffcom added the Needs Feedback Waiting for further input or clarification. label Mar 11, 2025
@Nick-PDS
Copy link
Author

Hey @Nick-PDS,

Are you using the filesystem binary data mode?

Reviewing debug info I see I have binaryMode in "memory". I guess I could see where that could become an issue with larger files. Would you suggest it in filesystem?

@Joffcom Joffcom removed the Needs Feedback Waiting for further input or clarification. label Mar 11, 2025
@Joffcom
Copy link
Member

Joffcom commented Mar 11, 2025

Hey @Nick-PDS,

Yeah I would recommend filesystem which will be made the default in the future.

@Joffcom Joffcom added the Needs Feedback Waiting for further input or clarification. label Mar 11, 2025
@mxmisterdev
Copy link

mxmisterdev commented Mar 12, 2025

I'm having the same issue, but I'm using the queue mode which doesn't support N8N_DEFAULT_BINARY_DATA_MODE=filesystem

@Joffcom Joffcom removed the Needs Feedback Waiting for further input or clarification. label Mar 12, 2025
@Joffcom
Copy link
Member

Joffcom commented Mar 13, 2025

Hey @mxmisterdev

Queue mode seems to work ok with filesystem now so it could be worth trying it.

You could also share the data path between your workers which would help.

@Joffcom Joffcom added the Needs Feedback Waiting for further input or clarification. label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review Needs Feedback Waiting for further input or clarification.
Projects
None yet
Development

No branches or pull requests

3 participants