Closed qkxie closed 2 hours ago
I found two similar discussions regarding issues with the HTTP request node losing JSON request data:
These discussions are still open and unsolved, which might indicate a related issue with how JSON bodies are handled in the HTTP request node.
Regarding your specific issue, it seems that the top_k
field in your JSON body is unexpectedly set to null
, which causes the request to fail. This could be due to a bug in the handling of JSON bodies in the HTTP request node. There is an error handling mechanism in place that logs warnings if exceptions occur during the execution of the HTTP request node, which might help in diagnosing the issue [1].
If you haven't already, you might want to check the logs for any warnings or errors that could provide more insight into why the top_k
field is being set to null
. Additionally, ensure that the JSON body is correctly formatted and that all variables are properly defined and accessible in the context of the request.
To continue talking to Dosu, mention @dosu.
You can reproduce this bug by just simply set url to https://xxx.com/a
, and set body to
{
"test1": true,
"test2": 5
}
just like below:
I think it should be fixed in the main branch by #9616
As I use docker-compose to launch Dify, should I build a docker image by myself and replace the image url in docker compose yaml? When will you release a new version which include the patch? @laipz8200
@qkxie
Self Checks
Dify version
0.10.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
get the response
❌ Actual Behavior
http request node change my json body. the field of
top_k
should be8
, but in the log, it becomes tonull
, so the request failed.