mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Unable to set Azure OpenAI Service Model in cloud.dify.ai, it shows 'Internal Server Error' #295
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HugoChaan on GitHub (May 19, 2025).
Self Checks
Dify version
1.4.0
Cloud or Self Hosted
Cloud
Steps to reproduce
I filled in the Azure openai URL and key as required, and then clicked OK. I can successfully set the same operation on the self deployed dify
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (May 19, 2025):
The 500 Internal Server Error you're encountering when setting up the Azure OpenAI Service Model in Dify's cloud environment can be caused by several factors. Here are some steps to troubleshoot and potentially resolve the issue:
Timeout Configuration: Ensure that the timeout settings are correctly configured. You might need to adjust the
PLUGIN_MAX_EXECUTION_TIMEOUTin thedocker-compose.yamlfile if applicable, although this is more relevant for self-hosted setups [1].Proxy Settings: Check if there are any proxy settings in the configuration that might be causing issues. Removing or adjusting these settings could help [1].
Model Provider Version: Verify that you are using the correct version of the model provider plugin. Using an incorrect version can lead to errors [1].
Environment Configuration: Ensure that the environment configuration is properly set up. This includes having the necessary environment files and settings in place [1].
API Key Encryption: A 401 Unauthorized error suggests an issue with API key authentication. Ensure that the API key is correctly configured and that encryption keys are properly set up. You may need to reset the encryption keys using the
reset_encrypt_key_paircommand and re-enter your API key in the Model Providers settings [2].Error Logs: Check the API container logs for detailed error messages. These logs can provide insights into the specific cause of the 500 Internal Server Error [3].
By following these steps, you should be able to identify and resolve the issue causing the Internal Server Error.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@imharvol commented on GitHub (Jun 2, 2025):
I can replicate. When I enter my credentials in dify.ai, I get a "Internal Server Error" whereas when I put them into a self hosted docker compose, it works fine.
@dosubot[bot] commented on GitHub (Aug 20, 2025):
Hi, @HugoChaan. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary
Next Steps
Thank you for your understanding and contribution!