BundleValidationError
Validation failed for 1 parameter(s).
- Array of objects expected in parameter ‘photos’.
How to fix this problem?
Validation failed for 1 parameter(s).
How to fix this problem?
Hi @klientplus1, could you share the input bundles please?
@klientplus1 I meant the input bundles from the module that gives you the error. The Facebook pages module.
There are 0 inputs. I have attached a screenshot.
And the configuration of it? Alternatively, you can also share the blueprint. That would allow me to look at it directly (just make sure there are no API keys or sensitive information in there).
I see what the issue is:
I don’t know the exact results output you get from the Image generation module, but I guess it’s a URL to the image, not an image file directly.
I’m guessing that your goal is to generate a text with ChatGPT, then an image and then upload both of them to your page.
If that’s the case, you’ve put the wrong URL into the HTTP module.
In the HTTP module, where it asks for the URL, you have to map the URL of the image that has been created by chatgpt.
Next, in the facebook pages module, you deactivate the “Map” Button for the image and set the “I want to” field to “Upload a photo”, next you add a file name (you can map that to the file name you get from the http (get a file) module. Now you map the data to the http (get a file) data field and lastly, you map the message field at the bottom to the output of the first chatgpt (create a completion) module
Does that make sense?
It worked! I am very grateful to you for the instructions. I tried to do it myself all day and nothing worked. You helped me a lot, the script worked! The photo has been published but there is no text, how can I fix this?
Happy it worked, @klientplus1! Feel free to mark my comment as solution, so others can also find it.
Regarding the text, you should be able to just write that in the “Message” field that is right below the Photos.
How to mark your comments as solutions?