Skip to content

Error when updating a collection schema #223

Closed
@153957

Description

@153957

Using ArangoDB 3.10.0, Python 3.10, python-arango 7.5.1.

I run into this problem when trying to update the schema for an existing collection:

…
    collection.configure(schema=schema)
  File "/usr/local/lib/python3.10/site-packages/arango/collection.py", line 356, in configure
    return self._execute(request, response_handler)
  File "/usr/local/lib/python3.10/site-packages/arango/api.py", line 74, in _execute
    return self._executor.execute(request, response_handler)
  File "/usr/local/lib/python3.10/site-packages/arango/executor.py", line 65, in execute
    return response_handler(resp)
  File "/usr/local/lib/python3.10/site-packages/arango/collection.py", line 354, in response_handler
    return format_collection(resp.body)
  File "/usr/local/lib/python3.10/site-packages/arango/formatter.py", line 219, in format_collection
    result["computedValues"] = [
TypeError: 'NoneType' object is not iterable

https://github.com/ArangoDB-Community/python-arango/blob/main/arango/formatter.py#L218-L229

My collections do not have computesValues, I guess if there are none the key is still included in the body, but null/None, not an empty list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions