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
The issue you're encountering with the JSON parsing error in the HTTP request node likely stems from how the output from the previous module is being referenced or formatted in the JSON body. When you manually replace the rejectContent field with ["美团", "京东"], it works correctly, indicating that the problem is with how the dynamic content is being inserted.
Here are a few things to check and try:
Ensure Correct Data Type: Make sure that the output from the previous module is indeed an array of strings, as expected. If the output is not directly an array or if it's being referenced incorrectly, it could cause parsing issues.
Correct Reference Syntax: Verify that the syntax used to reference the previous module's output in the JSON body is correct. The reference should match the expected format for dynamic content insertion in your environment.
Debugging Output: Print or log the actual content being inserted into the rejectContent field before the HTTP request is made. This can help confirm whether the data is in the expected format.
Escape Characters: Ensure that any special characters in the strings are properly escaped if necessary.
If these steps do not resolve the issue, consider providing more details about how the output is being referenced in the JSON body, as there might be specific syntax or formatting requirements in your environment that need to be addressed.
代码执行内容如下:
http节点body请求体内容如下:
将上图中红框的部分换成["美团", "京东"]可正常运行
上述方法传参,报错
为什么传参的方式不行?
The text was updated successfully, but these errors were encountered: