GitHub "Create a file" node: "content is not valid Base64" error when uploading binary file from HTTP Request node

I am experiencing an issue when trying to upload a PNG file to GitHub using the “Create a file” node in n8n (version 1.112.6). My workflow is as follows:

  1. 2x HTTP Request nodes

    • Downloads a PNG file from a URL

    • “Response Format” is set to “File”

    • “Put Output in Field” is set to data

    • The binary data is valid (I can download and open the file from the node output)

  2. GitHub node (“Create a file”)

    • “Binary Property Name” is set to data (matches the HTTP Request node output)

    • The node is directly connected to the HTTP Request node

Despite this setup, I receive the following error in the GitHub node:
Your request is invalid or could not be processed by the service: content is not valid Base64

Troubleshooting steps already taken:

  • Verified the binary property name matches (data)

  • Confirmed the binary data is valid and the file is not empty or corrupted

  • File size is well below GitHub’s API limit

  • Tried re-executing the nodes

Request:
Is this a known issue with the GitHub node in n8n 1.112.6? Are there any workarounds or fixes to ensure the binary data is properly encoded and accepted by the GitHub API?

1 Like

Hi @Naacal

Could you please attach an example of the image you’re trying to upload?
I tested it with an image on my own, and it worked as expected..

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.