Issue with DashScope Embedding Model #11742

Closed
opened 2026-02-21 19:03:24 -05:00 by yindo · 0 comments
Owner

Originally created by @PhieuDieuVoCuc on GitHub (Mar 19, 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.1.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I am using Alibaba Cloud Model Studio, DashScope with OpenAI compatible mode.

I am working with the embedding model. After adding documents to the knowledge base, some succeed, but most of them fail with the following error at embedding process:
File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream self._handle_plugin_daemon_error(error.error_type, error.message) File "/app/api/core/plugin/manager/base.py", line 217, in _handle_plugin_daemon_error raise InvokeServerUnavailableError(description=args.get("description")) core.model_runtime.errors.invoke.InvokeServerUnavailableError: [models] Server Unavailable Error, HTTPSConnectionPool(host='dashscope-intl.aliyuncs.com', port=443): Max retries exceeded with url: /compatible-mode/v1/embeddings (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f3656a265d0>: Failed to resolve 'dashscope-intl.aliyuncs.com' ([Errno -2] Name or service not known)"))
I have tried adjusting some timeout configurations:
PLUGIN_MAX_EXECUTION_TIMEOUT
PYTHON_ENV_INIT_TIMEOUT
API_TOOL_DEFAULT_CONNECT_TIMEOUT
API_TOOL_DEFAULT_READ_TIMEOUT
The problem remains unresolved. I would appreciate any guidance on how to fix this.
Note: I have checked the DNS and tested curl inside the Docker container (Dify API container), and everything appears to be normal.

✔️ Expected Behavior

No response

Actual Behavior

It errors the first time, then I click the "retry" button, and it errors again:
Image

Error:
Image

Originally created by @PhieuDieuVoCuc on GitHub (Mar 19, 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.1.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I am using Alibaba Cloud Model Studio, DashScope with OpenAI compatible mode. I am working with the embedding model. After adding documents to the knowledge base, some succeed, but most of them fail with the following error at embedding process: ` File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream self._handle_plugin_daemon_error(error.error_type, error.message) File "/app/api/core/plugin/manager/base.py", line 217, in _handle_plugin_daemon_error raise InvokeServerUnavailableError(description=args.get("description")) core.model_runtime.errors.invoke.InvokeServerUnavailableError: [models] Server Unavailable Error, HTTPSConnectionPool(host='dashscope-intl.aliyuncs.com', port=443): Max retries exceeded with url: /compatible-mode/v1/embeddings (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f3656a265d0>: Failed to resolve 'dashscope-intl.aliyuncs.com' ([Errno -2] Name or service not known)")) ` I have tried adjusting some timeout configurations: PLUGIN_MAX_EXECUTION_TIMEOUT PYTHON_ENV_INIT_TIMEOUT API_TOOL_DEFAULT_CONNECT_TIMEOUT API_TOOL_DEFAULT_READ_TIMEOUT The problem remains unresolved. I would appreciate any guidance on how to fix this. Note: I have checked the DNS and tested curl inside the Docker container (Dify API container), and everything appears to be normal. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior It errors the first time, then I click the "retry" button, and it errors again: ![Image](https://github.com/user-attachments/assets/abe421e9-0e39-409b-80b1-1f7b2389c363) Error: ![Image](https://github.com/user-attachments/assets/7261b42c-ac35-4dd3-ad68-62b6de68306c)
yindo closed this issue 2026-02-21 19:03:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11742