Internal Server Error when using Get Conversation History Messages API endpoint
Self Checks
- [X] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [X] Please do not modify this template :) and fill in all the required fields.
Dify version
v0.10.0
Cloud or Self Hosted
Cloud
Steps to reproduce
- Use the following cURL command to retrieve messages from the Dify API:
curl --location 'https://api.dify.ai/v1/messages?user=5522XXXXX279&conversation_id=bb0a4XXXXXXX-4149-8ef0-6204eed28ef7&limit=30' \ --header 'Authorization: Bearer app-oEXXXXXXXXXXnGp' - Observe the response from the API.
✔️ Expected Behavior
The API should return the list of messages for the specified user and conversation ID.
❌ Actual Behavior
The API returns the following error message:
{
"message": "Internal Server Error",
"code": "unknown"
}
I found a similar closed issue regarding an "Internal Server Error" with the Dify API. The issue suggested that server errors might occur due to a full database, which has since been upgraded. It was also recommended to try replacing the API Key in the Bearer token and attempt the request again [1].
Additionally, the Dify API can experience rate limiting or throttling, which might result in an "Internal Server Error". If you encounter a rate limit, you might see an error message indicating that the server is overloaded or an error in the application has occurred [2].
You might want to check if the API key is correct and ensure that you are not hitting any rate limits. If the issue persists, consider retrying the request after some time.
To continue talking to Dosu, mention @dosu.
The first error was more than 12 hours ago, I have already changed the token and I still have the same error.
Please provide the container logs as well or other information. Like the time you make the request, we need to check the logs.
The log is not reaching the agent. How do I pull the logs of requests to the Cloud that were not processed?
Can you provide the time range you sent this request?
While using the Sass service, I encountered the same issue when calling this API. It's not related to a private deployment.
@crazywoola