Data error for my automation

:bullseye: What is your goal?

i want to automate blog post

:thinking: What is the problem?

http work well but i get error at json

1 operation
1 credit used
Initialization
1
Operation 1
DataError
Source is not valid JSON.

Origin
Make

Incomplete execution
The data was saved in the queue of Incomplete Executions.

:camera_with_flash: Screenshots: scenario setup, module configuration, errors

Can you show us as well how it looks the payload that this module is receiving? if you can screenshot the output of the module 1?

Hi @Plan_sous_Insha

Have you tried setting the HTTP module Parse response option to Yes?

That’s better than dealing with json as a string. If it’s a call to an LLM, set the prompt to generate json without ```.

If you definitely want to parse it yourself, set a variable after the HTTP module and check the string result with some inline service like jsonformatter. That will tell you if it’s valid json (from your screenshot , it’s not). If the value is valid json, use it to create the data structure with “Generate”. You can delete the set variable afterwards.

@damato

Hey there,

Sorry but that looks like the output of a call to an LLM where the prompt goes something like “please bro give me valid JSON as output bro”. Instead go to advanced settings and force a json output and get it parsed there.