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.
1. Is this request related to a challenge you're experiencing? Tell me about your story.
I have published my workflow on the Dify website, and I want to use the API to call my workflow. Therefore, I carefully read the API documentation and wrote the following code.
However, after running it, I was unable to get the desired result, and encountered the following error. {"code": "internal_server_error", "message": "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.", "status": 500}
I would like to know where the issue lies—whether it's a problem with the code or the website.
Similarly, I have looked through many issues with the same error message, but they are either too old or not related to my specific problem. My error remains unresolved.
Since I am using the website's service, it should not be an issue related to version differences (I assume). This is because I encountered the same error after deploying it locally as well...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
I have published my workflow on the Dify website, and I want to use the API to call my workflow. Therefore, I carefully read the API documentation and wrote the following code.

`import requests
import json
url = 'https://api.dify.ai/v1/chat-messages'
headers = {
'Authorization': 'Bearer app-cvAWPSTZCupZNuJre2seXKFs',
'Content-Type': 'application/json',
}
proxies = {
'http': 'socks5://127.0.0.1:7890',
'https': 'socks5://127.0.0.1:7890'
}
data = {
"inputs": {
"selection": "Fraud detection",
"input": [
{
"type": "pdf",
"transfer_method": "local_file",
"url": './test.pdf',
'upload_file_id':2
}
]
},
"query": "start",
"response_mode": "streaming",
"conversation_id": "",
"user": "abc-123",
}
response = requests.post(url, headers=headers, data=json.dumps(data),proxies=proxies)`
However, after running it, I was unable to get the desired result, and encountered the following error.
{"code": "internal_server_error", "message": "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.", "status": 500}
I would like to know where the issue lies—whether it's a problem with the code or the website.
Similarly, I have looked through many issues with the same error message, but they are either too old or not related to my specific problem. My error remains unresolved.
Since I am using the website's service, it should not be an issue related to version differences (I assume). This is because I encountered the same error after deploying it locally as well...
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions