Skip to content

Conversation

@rlmanrique
Copy link
Contributor

@rlmanrique rlmanrique commented Feb 10, 2026

When running the function: collections.list_all() the following error happens when using a collection with named vector and no properties.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/rodrigo/workspace/github/weaviate-cli/.venv/lib/python3.13/site-packages/weaviate/collections/collections/executor.py", line 392, in list_all
    return executor.execute(
           ~~~~~~~~~~~~~~~~^
        response_callback=resp,
        ^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        error_msg="Get all collections",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/Users/rodrigo/workspace/github/weaviate-cli/.venv/lib/python3.13/site-packages/weaviate/connect/executor.py", line 99, in execute
    return cast(T, exception_callback(e))
                   ~~~~~~~~~~~~~~~~~~^^^
  File "/Users/rodrigo/workspace/github/weaviate-cli/.venv/lib/python3.13/site-packages/weaviate/connect/executor.py", line 38, in raise_exception
    raise e
  File "/Users/rodrigo/workspace/github/weaviate-cli/.venv/lib/python3.13/site-packages/weaviate/connect/executor.py", line 95, in execute
    resp_call = response_callback(call)
  File "/Users/rodrigo/workspace/github/weaviate-cli/.venv/lib/python3.13/site-packages/weaviate/collections/collections/executor.py", line 389, in resp
    return _collection_configs_simple_from_json(data)
  File "/Users/rodrigo/workspace/github/weaviate-cli/.venv/lib/python3.13/site-packages/weaviate/collections/classes/config_methods.py", line 438, in _collection_configs_simple_from_json
    schema["class"]: _collection_config_simple_from_json(schema) for schema in schema["classes"]
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/Users/rodrigo/workspace/github/weaviate-cli/.venv/lib/python3.13/site-packages/weaviate/collections/classes/config_methods.py", line 329, in _collection_config_simple_from_json
    vector_config=__get_vector_config(schema, simple=True),
                  ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/Users/rodrigo/workspace/github/weaviate-cli/.venv/lib/python3.13/site-packages/weaviate/collections/classes/config_methods.py", line 280, in __get_vector_config
    props = vec_config.pop("properties", None)
            ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'pop'

However, when the collection has no named vector, it's fine.

This PR fixes that

Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@rlmanrique rlmanrique changed the title Fix empty vectorizer with named vector Fix get all collections when no properties and named vector Feb 10, 2026
@rlmanrique rlmanrique merged commit 5ca8347 into main Feb 10, 2026
114 of 118 checks passed
@rlmanrique rlmanrique deleted the fix/empty_vectorizer_named_vector branch February 10, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants