langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
49.72k stars 7.11k forks source link

[azure_openai] Error: peer closed connection without sending complete message body (incomplete chunked read) #9912

Open zhai5191 opened 3 hours ago

zhai5191 commented 3 hours ago

Self Checks

Dify version

0.9.2

Cloud or Self Hosted

Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

When my project code requests the chat-messages interface twice in a row and sends pictures, the interface returns [azure_openai] Error: peer closed connection without sending complete message body (incomplete chunked read)

✔️ Expected Behavior

Normal return

❌ Actual Behavior

No response

dosubot[bot] commented 3 hours ago

Hey @zhai5191! 👋 I'm here to help you with any bugs, questions, or contributions you have regarding Dify. I'll do my best to assist you while we wait for a human maintainer.

I couldn't find a specific solution to the "peer closed connection without sending complete message body" error in the Dify repository. However, there are a few similar discussions that might be relevant:

  1. Connection error: request error, status_code: 503 - This discussion is still open and might provide insights into connection-related issues.
  2. When using a chatbot with Gemini 1.5 Flush as a model, an error occurs from the second post with the same conversation ID - This is another open discussion that deals with errors occurring on consecutive requests, which might be similar to your issue.
  3. When publishing Api, '/chat-messages' api responds slowly with data in streaming mode - This discussion is also open and might offer some context on performance issues with the chat-messages API.

These discussions might not directly solve your problem but could provide some context or potential workarounds.

To continue talking to Dosu, mention @dosu.

zhai5191 commented 3 hours ago

I have no problem clicking Upload picture chat on the dify platform