Invalid text content type: <class 'NoneType'>. Expected str. #6779

Closed
opened 2026-02-21 18:17:16 -05:00 by yindo · 7 comments
Owner

Originally created by @whpengdd on GitHub (Nov 14, 2024).

Originally assigned to: @laipz8200 on GitHub.

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

0.11.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

image
image

The parameter extractor prompts error, when I use function calling

✔️ Expected Behavior

Success

Actual Behavior

parameter can't work by function calling.

Originally created by @whpengdd on GitHub (Nov 14, 2024). Originally assigned to: @laipz8200 on GitHub. ### 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 0.11.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![image](https://github.com/user-attachments/assets/3d4d9f05-c8b1-4d9f-b925-021d3d49aaa9) ![image](https://github.com/user-attachments/assets/487d2aa9-1d5e-48cb-bf73-253be8493f75) The parameter extractor prompts error, when I use function calling ### ✔️ Expected Behavior Success ### ❌ Actual Behavior parameter can't work by function calling.
yindo added the 🐞 bug label 2026-02-21 18:17:16 -05:00
yindo closed this issue 2026-02-21 18:17:16 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 14, 2024):

Hello @whpengdd! I'm here to assist you with any bugs, questions, or contributions you have for the project. Let me know how I can help you with the issue you've encountered.

I found some similar discussions and issues related to NoneType errors in Dify:

  1. Error in item: Invalid variable. - This discussion is unsolved and was last updated on September 23, 2024.
  2. Help: Failed to invoke tool: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' - This discussion is unsolved and was last updated on September 6, 2024.
  3. ‘>’ not supported between instances of ‘NoneType’ and ‘int’ - This discussion is unsolved and was last updated on June 23, 2024.

Additionally, there is a closed issue that might be related:

These discussions and issues might provide some insights or potential solutions to the problem you're encountering with the NoneType error in the parameter extractor.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Nov 14, 2024): <!-- Greeting --> Hello @whpengdd! I'm here to assist you with any bugs, questions, or contributions you have for the project. Let me know how I can help you with the issue you've encountered. <!-- Answer --> I found some similar discussions and issues related to `NoneType` errors in Dify: 1. [Error in item: Invalid variable.](https://github.com/langgenius/dify/discussions/8611) - This discussion is unsolved and was last updated on September 23, 2024. 2. [Help: Failed to invoke tool: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'](https://github.com/langgenius/dify/discussions/8048) - This discussion is unsolved and was last updated on September 6, 2024. 3. [‘>’ not supported between instances of ‘NoneType’ and ‘int’](https://github.com/langgenius/dify/discussions/5525) - This discussion is unsolved and was last updated on June 23, 2024. Additionally, there is a closed issue that might be related: - [seems that some variables are lost after the Parameter Extraction node.](https://github.com/langgenius/dify/issues/5393) - This issue was closed on August 1, 2024. The suggested solution was to ensure that two Direct Reply nodes are set up to output the content in the Parameter Extraction node. These discussions and issues might provide some insights or potential solutions to the problem you're encountering with the `NoneType` error in the parameter extractor. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@querio commented on GitHub (Dec 9, 2024):

Has this issue been fixed in version v0.13.0?

@querio commented on GitHub (Dec 9, 2024): Has this issue been fixed in version v0.13.0?
Author
Owner

@yihong0618 commented on GitHub (Dec 9, 2024):

can you provide your dsl? I can not reproduce it in my local dev

@yihong0618 commented on GitHub (Dec 9, 2024): can you provide your dsl? I can not reproduce it in my local dev
Author
Owner

@querio commented on GitHub (Dec 9, 2024):

issue.zip

@querio commented on GitHub (Dec 9, 2024): [issue.zip](https://github.com/user-attachments/files/18057463/issue.zip)
Author
Owner

@querio commented on GitHub (Dec 9, 2024):

The prerequisite for reproducing this error is that the parameter extractor uses a local large model.

@querio commented on GitHub (Dec 9, 2024): The prerequisite for reproducing this error is that the parameter extractor uses a local large model.
Author
Owner

@laipz8200 commented on GitHub (Dec 17, 2024):

The performance of this Node depends on the capability of the LLM.

@laipz8200 commented on GitHub (Dec 17, 2024): The performance of this Node depends on the capability of the LLM.
Author
Owner

@dosubot[bot] commented on GitHub (Jan 22, 2025):

Hi, @whpengdd. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You reported a bug in Dify version 0.11.1 when self-hosted via Docker, involving a NoneType error in the parameter extractor.
  • I referenced similar discussions and a closed issue for potential insights.
  • @querio asked if the issue persists in version 0.13.0 and shared a file for reproduction, noting it occurs with a local large model.
  • @yihong0618 requested the DSL for reproduction, and @laipz8200 mentioned performance dependency on the LLM's capability.

Next Steps:

  • Please let us know if this issue is still relevant to the latest version of the Dify repository by commenting here to keep the discussion open.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Jan 22, 2025): Hi, @whpengdd. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - You reported a bug in Dify version 0.11.1 when self-hosted via Docker, involving a `NoneType` error in the parameter extractor. - I referenced similar discussions and a closed issue for potential insights. - @querio asked if the issue persists in version 0.13.0 and shared a file for reproduction, noting it occurs with a local large model. - @yihong0618 requested the DSL for reproduction, and @laipz8200 mentioned performance dependency on the LLM's capability. **Next Steps:** - Please let us know if this issue is still relevant to the latest version of the Dify repository by commenting here to keep the discussion open. - If there is no further activity, this issue will be automatically closed in 15 days. Thank you 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#6779