I have a Github node in my workflow, that downloads a file with approx 1.4MB size. It ends succesfully, but the binary data contains a 0 B file. The rest of the metadata is correct.
If its a Docker container, try running the container with a bigger memory.
Ex. docker run -it -d --rm --name n8n -p 5678:5678 -v ~/.n8n:/home/node/.n8n --memory=2g n8nio/n8n:latest
GitHub’s REST API for retrieving file contents (the "Get repository content" endpoint) has specific file size limits and requirements for how you can access files:
Files 1 MB or smaller: All features of the endpoint are supported, and you can use the standard API response to get the file content directly.
Files between 1 MB and 100 MB: Only the raw or object custom media types are supported. When using the object media type, the content field will be empty and the encoding field will be "none". To get the actual content of such files, you must use the raw media type by including the header:
Accept: application/vnd.github.v3.raw
This is required for files over 1 MB.
Files larger than 100 MB: The endpoint is not supported. You cannot retrieve the contents of files larger than 100 MB using t