Closed ericksvasc closed 1 month ago
Hello, @ericksvasc! I'm here to help you with any bugs, questions, or contributions you may have. Let's work together to resolve this issue.
I found a similar issue that might help you resolve the error you're encountering. The issue titled An error occurred while using the tool, and the code is displayed was last updated on September 05, 2024. The suggested solutions include:
Additionally, the error message "Failed to invoke tool: 'NoneType' object has no attribute 'items'" suggests that there might be a None
value where a dictionary is expected. This could be due to missing or incorrectly formatted tool parameters. Ensure that all required parameters are provided and correctly formatted.
If the issue persists, you might want to check the implementation of the retrieve
method in the retrieval_service.py
file, as the error log indicates a problem there. The retrieve
method performs document retrieval based on the specified method and can involve keyword search, semantic search, and full-text search. Make sure that the inputs to this method are valid and correctly formatted [2][3].
By addressing these points, you should be able to resolve the error and run the flow smoothly.
To continue talking to Dosu, mention @dosu.
Duplicated #8330
Self Checks
Dify version
latest
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
I expected it to run the flow smoothly
❌ Actual Behavior
it presents the error: Failed to invoke tool: 'NoneType' object has no attribute 'items'