You can't use image files sent via webhook?

Hi Makers. Pleas help!

I created a webhook that is getting an image file (and a few more things) from an app I created with Lovable. I want to send this image file to OpenAI for further analysis.

I get the data (attached screen of the data preview) but no matter what I do next, every module that I create to leverage the data that I get, I get the following two errors:

Validation failed for 2 parameter(s).

  • Missing value of required parameter ‘name’.
  • Missing value of required parameter ‘content’.

I get the image in binary format and based on hours of troubleshooting with ChatGPT everything should be fine, but I am unable to save it in Google drive / send it to OpenAI for analysis / do anything else with it. Getting the same errors.

Intuitively feels to me that I need to first convert this data to an actual image somehow or to use a module that “translates” the binary data to a new / different structure, but based on ChatGPT everything should be working as it is. I’m not technical, so not sure if my intuition is right or not.

Stuck.

Would love to get your perspective / ideas.



1 Like

I’m a beginner, but personally I’d try an Iterator module (array: 1.photo),
then retrieve filename and image data.
And if that still doesn’t work, I’ll try an HTTP module Get a file.

2 Likes

Hey Arno! Thanks for the reply. I tried the iterator and it’s super weird, it shows me that it gets empty data. Even thought I can see that the data is correctly received via the webhook (attached screenshots).

Not sure what’s the problem… or even how to debug this..



1 Like

Weird, yes indeed !

  • It’s as if the issue came from the webhook (because you get the same missing values in google drive module)
    What is the source sending data to it ?

  • and What about the HTTP module solution ? (HTTP Get a file ?)
    Sorry, i’m too newbie to help you more :wink:

2 Likes

The source is an app I created in Lovable. It’s weird because the data DOES arrive, but it’s like I can’t use it.. Strange..

Not sure if I get send raw image data via the HPPT module but will try. I’m more newbie than yourslef :slight_smile:

1 Like

Could you try using the map() function.

So it would be:

map(1.photo;name)

map(1.photo;data)

Use plain text for name and data, as in just type out the words.

You may need the iterator as mentioned, but try your first scenario flow first.

2 Likes

Welcome to the Make Community!

The problem is simple, and will be fairly obvious if you can provide us the output bundle instead of just screenshots of it.

To allow others to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Could you please share screenshots of your full scenario? Also include screenshots of any error messages, module settings (fields), relevant filter settings (conditions), and module output bundles. We need to see what you’re working with to give you the best advice.

You can upload images here using the Upload icon in the text editor:

We would appreciate it if you could upload screenshots here instead of linking to them outside of the forum. This allows us to zoom in on the image when clicked, and prevent tracking cookies from third-party websites.

2. Scenario Blueprint

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

You can upload the file here by clicking on this button:

3. Output Bundles of Modules

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved.

Sharing these details will make it easier for others to assist you. Thanks!

@samliew

2 Likes

thank you for the guidelines, and the reply. Moving forward will definitely do this.
I managed to solve the issue by changing the data that’s sent from Lovable to Base64 and then converting it back to raw data, and for some reason this time it managed to read it.

For now it’s a good enough solution, but I’ll try to debug it again when I get to a scale where the data volume will need to be managed better.

Thanks

I managed to solve the issue by changing the data that’s sent from Lovable to Base64 and then converting it back to raw data, and for some reason this time it managed to read it.

For now it’s a good enough solution, but I’ll try to debug it again when I get to a scale where the data volume will need to be managed better.

Thanks for your willingness to help Max. I will get back to this.