I have a review form where the text field has this format:
”Input Commentarios’s value:formatted as JSON-safe”
However, it returns the following error:
{
"error": {
"code": "InvalidRequestContent",
"message": "The request content is not valid and could not be deserialized: 'After parsing a value an unexpected character was encountered: \". Path 'survey_comments', line 4, position 1.'."
}
}
I think the part that is breaking is like what @Jici said. Try not having the ‘allow blank’ checked. Pass through each value and see if it works, then maybe just don’t send a key value pair if you don’t have one. Or send null if you need to. I usually handle the ‘allow blank’ in the workflow instead of relying on that checkbox.
I’m pretty sure the problem comes from the survey_comments field, because when I make a request using “” twice in the field, I get the same error that appears to the client.
So for that field, use one set of quotes, then in the workflow you can do the ‘JSON safe’ and it will add the quotes for you. Try it like that and see if it still gives you the error now that the ‘Allow blank’ is off.
How do you check the data request exactly? can you explain? maybe record a screencast that show API connector, workflow settings debug_mode when you run it…