ERROR: Cannot create a string longer than 0x1fffffe8 characters

Is there any node that splits the file into two?

Hey @miguelraatz,

Sadly there is not, but there are offset options you can use so you could read the first 100 lines and process them then read the next 100 lines and so on. I would probably use a sub workflow to handle this though to save on memory.

I managed to do this, but I can’t get him to read the next 100 lines, can you give me a visual example of how to do it?

Hey @miguelraatz,

I don’t have an example but I will see if I can free up some time to make one.

How did you solve this problem with docker? I still get this error message uploading a bigger mp4 file to youtube. Cannot create a string longer than 0x1fffffe8 characters

I also have this problem. I am selfhosting n8n and I use Docker and I already use the environment variable, but the problem persists. Any news on how to solve it?

Best, Mark

Same problem in docker hosted n8n.
It’s sad that the HTTP requests can’t handle files over 512MB in 2025 - what is this, 1995?
But hey, at least we have that sweet S3 integration!

@Jon Hi I’m getting the same error “Cannot create a string longer than 0x1fffffe8 characters” when I try to use the HTTP Request node to GET a file of 400 MB to then upload to google drive. (I’m on the self-hosted 1.114.1 version)
Is there a fix for this? Will setting the env variable N8N_DEFAULT_BINARY_DATA_MODE work?

Same problem here, Cannot create a string longer than 0x1fffffe8 characters on webhook, google drive, and such. Even when running n8n locally on docker and setting N8N_DEFAULT_BINARY_DATA_MODE=filesystem doesn’t do the trick

This issue is explained very well here by one of the supporters in one post :