langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
53.23k stars 7.77k forks source link

fix: json parse err when http node send request #11001

Closed litterGuy closed 5 days ago

litterGuy commented 6 days ago

When the node sends an http request parameter with \n\t\r, the json conversion error ValueError: Invalid control character at: line 1 column 8363 (char 8362)

Summary

When the request parameter carries '\t', '\n', '\r' and is sent in application/json format, an error "ValueError: Invalid control character at: line 1 column 8363 (char 8362)" will be reported.

Checklist

[!IMPORTANT]
Please review the checklist below before submitting your pull request.