Post text and media to X?

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

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:

I’m getting desperate by now.

I’ve set up a OAuth1 node to even a code node, I’ve followed all the information I found here, and yet still I get a json code error.

I’ve thrown it to all the AI you could think of and there’s still no resolution.

Could someone please help me!

You need read X api document .
Upload media needs to request X api . like this

then you should use X node , and quoted X media id .

Can you please share the workflow that you have so we can help you better?

Thanks

Here is what I've done.

Issue resolved, actually Grok itself gave me the final correct hint what was wrong after reviewing my code. A previous node, “Binary to Base64“, had an incorrect naming to what was used to post the image, therefore the binary was passed on incorrectly.

1 Like

Can you provide your json file I’m trying to post a text and an image and it’s not working