Hi Makers.
I’m trying to get an image file via a webhook (raw data, not a URL) and then use it to send to GPT / save to drive, etc.
I am able to get the data correctly, but then when I’m trying to pull it from the webhook into GPT or any other module it throws an error saying it’s empty.
- I can see that the data is correctly received by Make
- I tested with an external webhook tester and the data is perfectly sent and received
Spoke with a few automation experts, and no one is able to figure this out. What am I doing wrong? How can I pull the “data” part (the image) and send it to GPT?
I tried directly, via iterator, other modules - all fail and throw the same error / show that the data I’m trying to pull is empty. Seems that I’m not pulling it correctly.
Attached screens.
Hope someone here knows how to solve this. I will be forever grateful.
Hey Ari,
in the first screenshot photos is a collection and not an array, but is named the way an array would be. Also tags is a text string but also named the way an array would be. What is sending this webhook? Do you have a way to verify at the other end what is being sent and how?
1 Like
Thanks for the reply Stoyan. Appreciate you.
The data is sent by an app I cerated with Lovable. I’ve tested the data with an online webhook test and everything works perfectly - it’s received correctly, both the photo and the tags.
I’m not sure what to do here, it’s like I don’t know how to “use” the data that’s received via the webhook. How to access it / convert it.
Is there a way to access a collection? or should I adjust the Lovable app to send the data in a different way that would be easier to “digest” with Make?
The thing is that I can’t save the photos that I’m sending from Lovable, and I have to send the raw data of the photo and sometimes there will be multiple photos sent, so I do need to take into account a situation where there are multiple photos sent and I’ll need to iterate between them and analyze each one.
Curious to hear your thoughts. And thanks again.
1 Like
Can you share the output of the webhook as a JSON?
1 Like
Sure Stoyan. here:
[
{
“notes”: “”,
“photos”: {
“name”: “WhatsApp Image 2025-04-06 at 21.02.23.jpeg”,
“mime”: “image/jpeg”,
“data”: “IMTBuffer(38370, binary, 85ce64ddaa14dbb4decfe9592271a41ce4ba8e8e): ffd8ffe000104a46494600010100000100010000ffe201d84943435f50524f46494c45000101000001c800000000043000006d6e74725247422058595a2007e0000100010000000000006163737000000000000000000000000000000000000000000000”,
“files”: [
{
“name”: “WhatsApp Image 2025-04-06 at 21.02.23.jpeg”,
“mime”: “image/jpeg”,
“data”: “IMTBuffer(38370, binary, 85ce64ddaa14dbb4decfe9592271a41ce4ba8e8e): ffd8ffe000104a46494600010100000100010000ffe201d84943435f50524f46494c45000101000001c800000000043000006d6e74725247422058595a2007e0000100010000000000006163737000000000000000000000000000000000000000000000”
}
]
}
}
]
1 Like
Ok it looks like the problem is indeed the after photo. Can you update what ever is sending the webhook and rename that to just “photo”?
1 Like
no no it’s just the parsing of the text here. It’s actually a “[” “]”, basically an array.. not sure why you see the textbox here in the comments.
1 Like
But the variable it self is not an array, its a collection. This is causing the issue. Either change it to an array or rename it so its not confusing.
1 Like
eventually solved it by making Lovable sending the data as Base64 and then turning it back to raw data after I receive it in Make, and it worked. Super weird because it couldn’t use the original raw data, but it is what it is..