Error on Uploading .md file #13338

Closed
opened 2026-02-21 19:11:43 -05:00 by yindo · 2 comments
Owner

Originally created by @petCRE-dev on GitHub (Apr 25, 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.3.0

Cloud or Self Hosted

Cloud

Steps to reproduce

Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @petCRE-dev on GitHub (Apr 25, 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.3.0 ### Cloud or Self Hosted Cloud ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/1e10c3f6-ed17-4f9d-918a-74af54d6b701) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bugcloud labels 2026-02-21 19:11:43 -05:00
yindo closed this issue 2026-02-21 19:11:43 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 25, 2025):

Hello @petCRE-dev! I'm Dosu, your friendly bot here to help you tackle bugs, answer questions, and become a contributor. I'm here while you wait for a human maintainer. Let's get started!

To resolve the JSON unmarshalling error related to the GetTextEmbeddingNumTokensResponse.num_tokens field of type []int, ensure you are using the latest version of Dify with the updated plugins. This error occurs specifically when using Tongyi Qianwen or Cohere embeddings due to a JSON structure incompatibility that has been fixed in the official Dify plugins. The fix is included in PR #300 in the dify-official-plugins repository. Additionally, if you are using AOAI Embedding in high-quality mode, ensure that you update to the latest version of the AOAI Plugin, as a fix for a similar issue was implemented in commit a086d4ea0550660b1ce009fe9fe9f9f6f91dfc82. If you are using Dify v1.0.0, make sure your plugins are up-to-date to avoid this issue [1][2][3][4].

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

@dosubot[bot] commented on GitHub (Apr 25, 2025): <!-- Greeting --> Hello @petCRE-dev! I'm [Dosu](https://dosu.dev), your friendly bot here to help you tackle bugs, answer questions, and become a contributor. I'm here while you wait for a human maintainer. Let's get started! <!-- Answer --> To resolve the JSON unmarshalling error related to the `GetTextEmbeddingNumTokensResponse.num_tokens` field of type `[]int`, ensure you are using the latest version of Dify with the updated plugins. This error occurs specifically when using Tongyi Qianwen or Cohere embeddings due to a JSON structure incompatibility that has been fixed in the official Dify plugins. The fix is included in PR #300 in the dify-official-plugins repository. Additionally, if you are using AOAI Embedding in high-quality mode, ensure that you update to the latest version of the AOAI Plugin, as a fix for a similar issue was implemented in commit a086d4ea0550660b1ce009fe9fe9f9f6f91dfc82. If you are using Dify v1.0.0, make sure your plugins are up-to-date to avoid this issue <sup>[[1]](https://github.com/langgenius/dify/issues/14501)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/14708)</sup><sup>[[3]](https://github.com/langgenius/dify/discussions/14844)</sup><sup>[[4]](https://github.com/langgenius/dify/issues/14624)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/2ee9e356-59bb-45d4-a466-c1e03fa80c52?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/2ee9e356-59bb-45d4-a466-c1e03fa80c52?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/2ee9e356-59bb-45d4-a466-c1e03fa80c52?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/2ee9e356-59bb-45d4-a466-c1e03fa80c52?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/2ee9e356-59bb-45d4-a466-c1e03fa80c52?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/2ee9e356-59bb-45d4-a466-c1e03fa80c52?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/2ee9e356-59bb-45d4-a466-c1e03fa80c52?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Apr 25, 2025):

What the embedding model? Do you have more details.

@crazywoola commented on GitHub (Apr 25, 2025): What the embedding model? Do you have more details.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13338