Issues occur when configuring certain model providers #9049

Closed
opened 2026-02-21 18:29:57 -05:00 by yindo · 0 comments
Owner

Originally created by @Gravity4436 on GitHub (Mar 4, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Cloud

Steps to reproduce

When I am configuring the API of model providers, the API key and some other information of certain model providers cannot be saved.
For some models, such as Moonshot, a prompt appears:
"An error occurred during credentials validation, HTTPSConnectionPool(host='api.moonshot.cn') Max retries exceeded with url: /v1/chat/completions (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnectionPool object at 0x7faac15cb050>, 'Connection to api.moonshot.cn timed out. (connect timeout=10)'))".
I have double-checked and confirmed that the information I entered is accurate.
However, when configuring the API for Gemini and DeepSeek, the information can be saved successfully.
Please let me know how to resolve this issue

one where there is no response for a long time after clicking save

Image

another where an error message such as "An error occurred during credentials validation"

Image

✔️ Expected Behavior

When configuring the API of model providers, the API key and other information should be saved successfully without any error messages.

Actual Behavior

When configuring the API of certain model providers, the API key and other information cannot be saved, or there is no response after saving.
For some models, such as Moonshot, an error message appears: "An error occurred during credentials validation, HTTPSConnectionPool(host='api.moonshot.cn') Max retries exceeded with url: /v1/chat/completions (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnectionPool object at 0x7faac15cb050>, 'Connection to api.moonshot.cn timed out. (connect timeout=10)'))".

Originally created by @Gravity4436 on GitHub (Mar 4, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Cloud ### Steps to reproduce When I am configuring the API of model providers, the API key and some other information of certain model providers cannot be saved. For some models, such as Moonshot, a prompt appears: "An error occurred during credentials validation, HTTPSConnectionPool(host='api.moonshot.cn') Max retries exceeded with url: /v1/chat/completions (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnectionPool object at 0x7faac15cb050>, 'Connection to api.moonshot.cn timed out. (connect timeout=10)'))". I have double-checked and confirmed that the information I entered is accurate. However, when configuring the API for Gemini and DeepSeek, the information can be saved successfully. Please let me know how to resolve this issue one where there is no response for a long time after clicking save ![Image](https://github.com/user-attachments/assets/74bcde48-1942-4a65-92d3-59dc1f2eaa26) another where an error message such as "An error occurred during credentials validation" ![Image](https://github.com/user-attachments/assets/7e1a2404-7d3f-4fb5-a78c-dfc36f29b893) ### ✔️ Expected Behavior When configuring the API of model providers, the API key and other information should be saved successfully without any error messages. ### ❌ Actual Behavior When configuring the API of certain model providers, the API key and other information cannot be saved, or there is no response after saving. For some models, such as Moonshot, an error message appears: "An error occurred during credentials validation, HTTPSConnectionPool(host='api.moonshot.cn') Max retries exceeded with url: /v1/chat/completions (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnectionPool object at 0x7faac15cb050>, 'Connection to api.moonshot.cn timed out. (connect timeout=10)'))".
yindo added the 🐞 buggood first issuestale labels 2026-02-21 18:29:57 -05:00
yindo closed this issue 2026-02-21 18:29:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9049