Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when querying empty change log #503

Open
bdpedigo opened this issue Aug 12, 2024 · 0 comments
Open

Error when querying empty change log #503

bdpedigo opened this issue Aug 12, 2024 · 0 comments

Comments

@bdpedigo
Copy link
Contributor

from caveclient import CAVEclient

client = CAVEclient("minnie65_phase3_v1")
bad_root_id = 864691135463752254
client.chunkedgraph.get_change_log(bad_root_id, filtered=True)

gives

HTTPError: 500 Server Error: fastremap.unique only supports integer types. for url: https://minnie.microns-daf.com/segmentation/api/v1/table/minnie3_v1/root/864691135463752254/change_log?filtered=True content:b'{\n  "code": 500,\n  "duration": 172.25217819213867,\n  "message": "fastremap.unique only supports integer types.",\n  "timestamp": "2024-08-12 22:05:43.828165",\n  "traceback": [\n    "Traceback (most recent call last):\\n",\n    "  File \\"/app/venv/lib/python3.11/site-packages/flask/app.py\\", line 1484, in full_dispatch_request\\n    rv = self.dispatch_request()\\n         ^^^^^^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"/app/venv/lib/python3.11/site-packages/flask/app.py\\", line 1469, in dispatch_request\\n    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)\\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"/app/venv/lib/python3.11/site-packages/middle_auth_client/decorators.py\\", line 296, in decorated_function\\n    return f(*args, **kwargs)\\n           ^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"/app/venv/lib/python3.11/site-packages/middle_auth_client/decorators.py\\", line 418, in decorated_function\\n    return f(*args, **kwargs)\\n           ^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"/app/pychunkedgraph/app/app_utils.py\\", line 50, in decorated_function\\n    return f(*args, **kwargs)\\n           ^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"/app/pychunkedgraph/app/segmentation/v1/routes.py\\", line 410, in change_log\\n    log = common.change_log(table_id, root_id, filtered)\\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"/app/pychunkedgraph/app/segmentation/common.py\\", line 716, in change_log\\n    return history.change_log_summary(filtered=filtered)\\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"/app/pychunkedgraph/graph/segmenthistory.py\\", line 206, in change_log_summary\\n    tabular_changelog = self.tabular_changelog(root_id, filtered=filtered)\\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"/app/pychunkedgraph/graph/segmenthistory.py\\", line 300, in tabular_changelog\\n    tabular_changelog = self.tabular_changelogs[root_id].copy()\\n                        ^^^^^^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"/app/pychunkedgraph/graph/segmenthistory.py\\", line 92, in tabular_changelogs\\n    self._tabular_changelogs = self._build_tabular_changelogs()\\n                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"/app/pychunkedgraph/graph/segmenthistory.py\\", line 141, in _build_tabular_changelogs\\n    edited_sv_ids = self.collect_edited_sv_ids(root_id=root_id)\\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"/app/pychunkedgraph/graph/segmenthistory.py\\", line 109, in collect_edited_sv_ids\\n    operation_ids = self.past_operation_ids(root_id=root_id)\\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"/app/pychunkedgraph/graph/segmenthistory.py\\", line 290, in past_operation_ids\\n    operation_ids = fastremap.unique(operation_ids)\\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n",\n    "  File \\"fastremap.pyx\\", line 767, in fastremap.unique\\n",\n    "TypeError: fastremap.unique only supports integer types.\\n"\n  ]\n}\n'

Oddly, this works on "minnie65_public"

client = CAVEclient("minnie65_public")
bad_root_id = 864691135463752254
client.chunkedgraph.get_change_log(bad_root_id, filtered=True)

gives

{'n_mergers': 0,
 'n_splits': 0,
 'operations_ids': [],
 'past_ids': [],
 'user_info': {}}
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

No branches or pull requests

1 participant