You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
Dify version
Version 0.10.0-beta2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Using request post tool in a workflow,using form-data as body.
I found in 0.10.0-beta2 at "api/core/workflow/nodes/http_request/http_executor.py".From 316th line: for key, value in self.data.items(): raw += f"--{boundary}\r\n" raw += f'Content-Disposition: form-data; name="{key}"\r\n\r\n' raw += f"{value}\r\n"
I think the '\r' is redundant which makes the boundary format wrong.
✔️ Expected Behavior
post request ok.
❌ Actual Behavior
There was an error parsing the body.Did not find boundary character 117 at index 2.
The text was updated successfully, but these errors were encountered:
The issue you're encountering seems to be related to the use of \r\n in the boundary format of the form-data. The \r character might be causing the boundary to be incorrectly formatted, leading to parsing errors.
In HTTP, boundaries in multipart form-data should be separated by \r\n, but if the implementation or the receiving server expects a different format, it could cause issues. You might want to try removing the \r to see if it resolves the problem:
CRLF is a delimiter that complies with the HTTP standard. In the next version, we will update the log of the HTTP Node to make it look closer to the raw format defined by the HTTP protocol. It will look something like this:
Self Checks
Dify version
Version 0.10.0-beta2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Using request post tool in a workflow,using form-data as body.
I found in 0.10.0-beta2 at "api/core/workflow/nodes/http_request/http_executor.py".From 316th line:
for key, value in self.data.items(): raw += f"--{boundary}\r\n" raw += f'Content-Disposition: form-data; name="{key}"\r\n\r\n' raw += f"{value}\r\n"
I think the '\r' is redundant which makes the boundary format wrong.
✔️ Expected Behavior
post request ok.
❌ Actual Behavior
There was an error parsing the body.Did not find boundary character 117 at index 2.
The text was updated successfully, but these errors were encountered: