Open kelinkong opened 5 days ago
Hey @kelinkong! 👋 I'm here to help you with bug fixes, questions, and more. I'm a bot, but I'll make sure you get the assistance you need while waiting for a human maintainer.
I found a similar issue related to 'Internal Server Error' in Dify's cloud environment. The error often occurs due to unhandled exceptions or unexpected errors in the code. In the Dify codebase, the _error_to_stream_response
method in the AppGenerateResponseConverter
class is responsible for mapping exceptions to error responses. If an exception does not match any predefined error types, it defaults to logging the error and returning an 'Internal Server Error' response [1].
To troubleshoot this issue, you might want to:
If the problem persists, consider increasing the logging level to capture more detailed information about the error, which can help in diagnosing the root cause.
To continue talking to Dosu, mention @dosu.
Can you provide the time that you make the request?
It's around 9:30 this morning
Self Checks
Dify version
https://cloud.dify.ai/
Cloud or Self Hosted
Cloud
Steps to reproduce
I am using text generation AI to create a test question generation assistant. Here is my prompt:
When I input the corresponding variable, I don't get any output.
✔️ Expected Behavior
Using text generation AI, expect to return the generated text
❌ Actual Behavior
data: {"event": "error", "message_id": "a04e042e-4b5f-4b18-afc0-f37bb7e1d4d1", "created_at": 1731374336, "code": "internal_server_error", "message": "Internal Server Error, please contact support.", "status": 500}