Question about Telegram Get File & Edit Image error importing image

I’m trying to create a Telegram bot that takes an image download the binary data and pass it to the edit node to resize it, but It seems that I can’t pass the binary data at all for some reason, I also searched for similar question but i can’t find anything so for that reason

PLEASE HELP!

Screenshot 2024-06-07 112215

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @awsdang ,

Welcome to the community! :sparkles:

It seems that what you’re doing wrong is how you’re calling the file in your Telegram1 Node and later at the EditImage.

I was able to reproduce your workflow successfully this by using the following params in the Telegram Node:

And then, in the Edit Image Node:

The easiest way to make sure you have the right key-value for what you are trying to reach is to simply drag the label from the input schema to the File ID text area.

Let us know how you get on!

1 Like

this is what i tried earlier but i got:
Stream yields empty buffer

Could you try setting the Property Name to a fixed value instead of a function?

1 Like

you mean like this?

i even added an new node just to be sure nothing is wrong with my setup

edit:
here’s the error details:

Stack trace

Error: Stream yields empty buffer at Socket.<anonymous> (/usr/local/lib/node_modules/n8n/node_modules/gm/lib/command.js:56:21) at Socket.emit (node:events:531:35) at Socket.emit (node:domain:488:12) at endReadableNT (node:internal/streams/readable:1696:12) at processTicksAndRejections (node:internal/process/task_queues:82:21)

edit 2:
tried to recreate it on n8n cloud instead of my self-host,
it worked!
both my self-host and the cloud are 1.42.1

Yes.

Ok, I think we’re using different nodes.

Could you share some info on your set up?

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

And are your previous node params the same? Just to make sure I’m able to recriate faithfully

n8n version: 1.42.1
Database (default: SQLite): default SQLite
n8n EXECUTIONS_PROCESS setting (default: own, main):  own, main
Running n8n via (Docker, npm, n8n cloud, desktop app): npm
Operating system: ubuntu 23.10

found the solution, i didn’t have graphicsmagick installed
all i had to do is to run:

sudo apt install graphicsmagick
2 Likes

Hi @awsdang ,

Thanks for sharing your solution!!

Would it be ok to mark this as solved so that other users potentially facing the same issue can find the answer more easily?

1 Like

sure please do

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