Skip to main content

I'm having a problem with my workflow, which retrieves up to 5 messages, merges them and sends a single message to N8n.

But I've noticed an error: when the user sends a short message like “Hi, how are you?”, but if the user sends a long message with line breaks, it hangs. Here's the error returned by the External Request node:

Bad control character in string literal in JSON at position 454 (line 3 column 423).

Do you have a solution for formatting all long texts containing line breaks so that the External request node accepts the content?

 

Hi, ​@Anthony.75001!

 

Try this:

  • Remove the quotation marks from the values.
  • Click on the Custom Field.
  • Select Encode to JSON.

 

 

 


Ooooh thank you so much! I've been struggling for hours, asking so many questions at ChatGPT... Thank goodness I thought to ask the question here.

 

Thank you so much. I'm going to test this solution for a while.


Reply