Replies: 3 comments
-
To resolve the "Invalid variable" error in the HTTP POST request configuration for the endpoint Here is an example of a correctly formatted cURL request: curl -X POST 'http://10.26.182.18:8888/v1/chat-messages' \
-H 'Authorization: Bearer {api_key}' \
-H 'Content-Type: application/json' \
--data-raw '{
"inputs": {
"name": "dify"
},
"query": "What are the specs of the iPhone 13 Pro Max?",
"response_mode": "streaming",
"user": "abc-123",
"files": [
{
"type": "image",
"transfer_method": "remote_url",
"url": "https://cloud.dify.ai/logo/logo-site.png"
}
]
}' Ensure that:
If any of these fields are missing or incorrectly formatted, it could result in an "Invalid variable" error. Additionally, ensure that the For more detailed information and examples, you can refer to the API documentation provided in the Applications -> Access API section of the Dify platform. This documentation includes example requests and key considerations for handling |
Beta Was this translation helpful? Give feedback.
-
v0.8.2 Still successfully reproduced. |
Beta Was this translation helpful? Give feedback.
-
0.11.1 Still successfully reproduced. |
Beta Was this translation helpful? Give feedback.
-
Self Checks
Dify version
0.8.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
In workflow mode.
first:
second:
error:
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
Beta Was this translation helpful? Give feedback.
All reactions