[PR #30364] fix: fix query_vector is invalid lead google.protobuf.message.DecodeE… #32789

Closed
opened 2026-02-21 20:52:04 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/30364

State: closed
Merged: No


…rror: Error parsing message

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

fix #29750

traceback

2025-12-30 04:09:55.098 INFO  [ThreadPoolExecutor-1_0] [_client.py:1038] - HTTP Request: GET http://weaviate:8080/v1/schema/Vector index 859f7a62-ba64-4d35-9ce3-930881adc4b8 Node C "HTTP/1.1 200 OK
2025-12-30 04:09:55.110 ERROR [ThreadPoolExecutor-1_0] [retrieval_service.py:310] - Error parsing message
Traceback (most recent call last):
  File "/app/api/core/rag/datasource/retrieval_service.py", line 244, in embedding_search
    vector.search_by_vector(
  File "/app/api/core/rag/datasource/vdb/vector_factory.py", line 273, in search_by_vector
    return self._vector_processor.search_by_vector(query_vector, **kwargs)
  File "/app/api/core/rag/datasource/vdb/weaviate/weaviate_vector.py", line 369, in search_by_vector
    res = col.query.near_vector(
  File "/app/api/venv/lib/python3.12/site-packages/weaviate/collections/queries/near_vector/query/executor.py", line 376, in near_vector
    request = self._query.near_vector(
  File "/app/api/venv/lib/python3.12/site-packages/weaviate/collections/grpc/query.py", line 266, in near_vector
    return self.__create_request(
  File "/app/api/venv/lib/python3.12/site-packages/weaviate/collections/grpc/query.py", line 473, in __create_request
    return search_get_pb2.SearchRequest(
google.protobuf.message.DecodeError: Error parsing message
Exception in thread Thread-21 (_retriever):
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.12/threading.py", line 1012, in run
    self._target(*self._args, **self._kwargs)
  File "/app/api/core/rag/retrieval/dataset_retrieval.py", line 801, in _retriever
    documents = RetrievalService.retrieve(
  File "/app/api/core/rag/datasource/retrieval_service.py", line 115, in retrieve
    raise ValueError("; In".join(exceptions))

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/30364 **State:** closed **Merged:** No --- …rror: Error parsing message > [!IMPORTANT] > > 1. Make sure you have read our [contribution guidelines](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) > 1. Ensure there is an associated issue and you have been assigned to it > 1. Use the correct syntax to link this PR: `Fixes #<issue number>`. ## Summary fix #29750 traceback ``` 2025-12-30 04:09:55.098 INFO [ThreadPoolExecutor-1_0] [_client.py:1038] - HTTP Request: GET http://weaviate:8080/v1/schema/Vector index 859f7a62-ba64-4d35-9ce3-930881adc4b8 Node C "HTTP/1.1 200 OK 2025-12-30 04:09:55.110 ERROR [ThreadPoolExecutor-1_0] [retrieval_service.py:310] - Error parsing message Traceback (most recent call last): File "/app/api/core/rag/datasource/retrieval_service.py", line 244, in embedding_search vector.search_by_vector( File "/app/api/core/rag/datasource/vdb/vector_factory.py", line 273, in search_by_vector return self._vector_processor.search_by_vector(query_vector, **kwargs) File "/app/api/core/rag/datasource/vdb/weaviate/weaviate_vector.py", line 369, in search_by_vector res = col.query.near_vector( File "/app/api/venv/lib/python3.12/site-packages/weaviate/collections/queries/near_vector/query/executor.py", line 376, in near_vector request = self._query.near_vector( File "/app/api/venv/lib/python3.12/site-packages/weaviate/collections/grpc/query.py", line 266, in near_vector return self.__create_request( File "/app/api/venv/lib/python3.12/site-packages/weaviate/collections/grpc/query.py", line 473, in __create_request return search_get_pb2.SearchRequest( google.protobuf.message.DecodeError: Error parsing message Exception in thread Thread-21 (_retriever): Traceback (most recent call last): File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner self.run() File "/usr/local/lib/python3.12/threading.py", line 1012, in run self._target(*self._args, **self._kwargs) File "/app/api/core/rag/retrieval/dataset_retrieval.py", line 801, in _retriever documents = RetrievalService.retrieve( File "/app/api/core/rag/datasource/retrieval_service.py", line 115, in retrieve raise ValueError("; In".join(exceptions)) ``` ## Screenshots | Before | After | |--------|-------| | ... | ... | ## Checklist - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:52:04 -05:00
yindo closed this issue 2026-02-21 20:52:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32789