Open damadorPL opened 4 hours ago
I found some similar issues that might be relevant to the error you're encountering:
ERROR: '<' not supported between instances of 'NoneType' and 'NoneType' - This issue was resolved by upgrading to version 0.10.0, which you are already using.
Failed to invoke tool: 'NoneType' object has no attribute 'items' - The suggested solutions for this issue include:
The error message you're seeing suggests that there might be a None
value where a string is expected, specifically related to the replace
method. 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 to ensure that the inputs to this method are valid and correctly formatted [1].
To continue talking to Dosu, mention @dosu.
Self Checks
Dify version
0.10.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
crwal any url with firefrawl/jina
text-embedding-ada-002 jina-reranker-v2-base-multilingual
but it fail with any combination
add it to completition and test
api return
2024-10-22 18:53:48,170.170 ERROR [Thread-3 (_generate_worker)] [app_generator.py:210] - Unknown Error when generating Traceback (most recent call last): File "/app/api/core/app/apps/completion/app_generator.py", line 191, in _generate_worker runner.run( File "/app/api/core/app/apps/completion/app_runner.py", line 119, in run context = dataset_retrieval.retrieve( File "/app/api/core/rag/retrieval/dataset_retrieval.py", line 122, in retrieve all_documents = self.single_retrieve( File "/app/api/core/rag/retrieval/dataset_retrieval.py", line 330, in single_retrieve results = RetrievalService.retrieve( File "/app/api/core/rag/datasource/retrieval_service.py", line 104, in retrieve raise Exception(exception_message) Exception: 'NoneType' object has no attribute 'replace'; 'NoneType' object has no attribute 'replace' 2024-10-22 18:53:48,180.180 ERROR [Dummy-2] [base_app_generate_response_converter.py:131] - 'NoneType' object has no attribute 'replace'; 'NoneType' object has no attribute 'replace'
✔️ Expected Behavior
working generation
❌ Actual Behavior
no generation and error in api