Open songleipu123 opened 1 week ago
@songleipu123 Hello there! I'm here to help you with any bugs, questions, or contributions you have with the Dify project. If you need assistance, feel free to ask.
I found a similar issue related to a 500 Internal Server Error when using the Dify API. In Dify version v0.10.1, there was a change where the image upload feature was replaced with a more comprehensive file upload feature. This change might affect workflows that previously relied on the sys.files
variable, as it has been marked as LEGACY
and is set to be deprecated [1][2].
Additionally, the error you're encountering with the MessageQueueMessage
class seems to be due to a missing status
attribute. The MessageQueueMessage
class should have attributes like task_id
, message_id
, conversation_id
, app_mode
, and event
, but not status
[3].
To resolve this issue, you might need to check the implementation of the MessageQueueMessage
class and ensure it aligns with the expected attributes. Also, review any recent changes in the API workflow related to file uploads and adjust your implementation accordingly.
To continue talking to Dosu, mention @dosu.
@songleipu123 Hello there! I'm here to help you with any bugs, questions, or contributions you have with the Dify project. If you need assistance, feel free to ask.
I found a similar issue related to a 500 Internal Server Error when using the Dify API. In Dify version v0.10.1, there was a change where the image upload feature was replaced with a more comprehensive file upload feature. This change might affect workflows that previously relied on the
sys.files
variable, as it has been marked asLEGACY
and is set to be deprecated [1][2].Additionally, the error you're encountering with the
MessageQueueMessage
class seems to be due to a missingstatus
attribute. TheMessageQueueMessage
class should have attributes liketask_id
,message_id
,conversation_id
,app_mode
, andevent
, but notstatus
[3].To resolve this issue, you might need to check the implementation of the
MessageQueueMessage
class and ensure it aligns with the expected attributes. Also, review any recent changes in the API workflow related to file uploads and adjust your implementation accordingly.To continue talking to Dosu, mention @dosu.
I use workflow's backup, It can normally running , didn't Report the same error... and I checked backup' setting detail , is the same , I don't know why and what problem in current workflow
I encouter the similar problem. However, I try to remove the dify-api-0.10.1 image and pull the image again, this problem can be solved.
Try deleting the image and pulling it again.
Self Checks
Dify version
v0.10.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
"user": user_id, "conversation_id": conversation_id } headers = { 'Authorization': f'Bearer {self.api_key}', 'Content-Type': 'application/json' } url = f"{self.api_base}/chat-messages" response = requests.post(url, headers=headers, data=json.dumps(data), proxies=self.proxy)
✔️ Expected Behavior
Use API to call dify workflow can normally run
❌ Actual Behavior
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}