Embedding task will fail after hitting rate limit in tongyi plugin #64

Closed
opened 2026-02-16 10:17:58 -05:00 by yindo · 3 comments
Owner

Originally created by @xinlmain on GitHub (Mar 11, 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 Dify issues & Dify Official Plugins, 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.1

Plugin version

0.0.10

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

If you create a knowledge base with reasonable size, with tongyi embeddings it will always fail. As the first rate limit error raised by client will cause the task to fail.
Need to handle this 429 error and add backoffs and retries.

✔️ Error log

core.model_runtime.errors.invoke.InvokeError: [tongyi] Error: PluginInvokeError: {"args":{"description":"[models] Error: Response output is missing or does not contain embeddings."},"error_type":"InvokeError","message":"[models] Error: Response output is missing or does not contain embeddings."}

Originally created by @xinlmain on GitHub (Mar 11, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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.1 ### Plugin version 0.0.10 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce If you create a knowledge base with reasonable size, with tongyi embeddings it will always fail. As the first rate limit error raised by client will cause the task to fail. Need to handle this 429 error and add backoffs and retries. ### ✔️ Error log core.model_runtime.errors.invoke.InvokeError: [tongyi] Error: PluginInvokeError: {"args":{"description":"[models] Error: Response output is missing or does not contain embeddings."},"error_type":"InvokeError","message":"[models] Error: Response output is missing or does not contain embeddings."}
yindo added the bug label 2026-02-16 10:17:58 -05:00
yindo closed this issue 2026-02-16 10:17:58 -05:00
Author
Owner

@zy1024 commented on GitHub (Mar 15, 2025):

I'm having the same issue

@zy1024 commented on GitHub (Mar 15, 2025): I'm having the same issue
Author
Owner

@Nullrable commented on GitHub (Jul 15, 2025):

I'm having the same issue

@Nullrable commented on GitHub (Jul 15, 2025): I'm having the same issue
Author
Owner

@dosubot[bot] commented on GitHub (Aug 20, 2025):

Hi, @xinlmain. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported that embedding tasks fail completely after a 429 rate limit error when using the Tongyi plugin.
  • This happens on Dify v1.0.1 with plugin v0.0.10 in a self-hosted Docker setup.
  • Other users like zy1024 and Nullrable have confirmed experiencing the same issue.
  • There is currently no retry or backoff mechanism implemented to handle rate limit errors.
  • I suggested implementing retries with backoff to improve reliability.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here.
  • If I don’t hear back within 5 days, I will automatically close this issue.

Thanks for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 20, 2025): Hi, @xinlmain. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported that embedding tasks fail completely after a 429 rate limit error when using the Tongyi plugin. - This happens on Dify v1.0.1 with plugin v0.0.10 in a self-hosted Docker setup. - Other users like zy1024 and Nullrable have confirmed experiencing the same issue. - There is currently no retry or backoff mechanism implemented to handle rate limit errors. - I suggested implementing retries with backoff to improve reliability. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here. - If I don’t hear back within 5 days, I will automatically close this issue. Thanks for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#64