langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
51.69k stars 7.48k forks source link

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

Open whpengdd opened 4 hours ago

whpengdd commented 4 hours ago

Self Checks

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.

dosubot[bot] commented 4 hours ago

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.