Unable to view packages in local config
birnbera opened this issue · 0 comments
birnbera commented
I am able to browse an S3 bucket using the local catalog and view package manifests in the .quilt
prefix, however when I go to the "PACKAGES" tab, I see the message: "No packages" (screenshots below). I believe this error message is related although it doesn't happen every time I click the "PACKAGES" tab:
INFO: <masked>:60634 - "HEAD /<masked>/.quilt/workflows/config.yml HTTP/1.1" 404 Not Found
INFO: <masked>:60661 - "POST /graphql HTTP/1.1" 307 Temporary Redirect
'"325c4e3d3883e66f55bafd462afd65fd"'
GraphQL request:3:5
2 | packages(bucket: $bucket, filter: $filter) {
3 | total
| ^
4 | __typename
Traceback (most recent call last):
File "<masked>/lib/python3.10/site-packages/graphql/execution/execute.py", line 625, in await_result
return_type, field_nodes, info, path, await result
File "<masked>/lib/python3.10/site-packages/quilt3_local/graphql.py", line 150, in package_list_total
return len(await packages.get_all_package_pointers(pl.bucket, pl.filter))
File "<masked>/lib/python3.10/site-packages/quilt3_local/async_cache.py", line 53, in wrapper
return await asyncio.shield(fut)
File "<masked>/lib/python3.10/site-packages/quilt3_local/packages.py", line 188, in get_all_package_pointers
by_etag[name][etag].tags.append(tag)
KeyError: '"325c4e3d3883e66f55bafd462afd65fd"'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<masked>/lib/python3.10/site-packages/graphql/execution/execute.py", line 628, in await_result
return await completed
File "<masked>/lib/python3.10/site-packages/graphql/execution/execute.py", line 456, in get_results
await gather(*(results[field] for field in awaitable_fields)),
File "<masked>/lib/python3.10/site-packages/graphql/execution/execute.py", line 632, in await_result
self.handle_field_error(error, return_type)
File "<masked>/lib/python3.10/site-packages/graphql/execution/execute.py", line 666, in handle_field_error
raise error
File "<masked>/lib/python3.10/site-packages/graphql/execution/execute.py", line 625, in await_result
return_type, field_nodes, info, path, await result
File "<masked>/lib/python3.10/site-packages/quilt3_local/graphql.py", line 150, in package_list_total
return len(await packages.get_all_package_pointers(pl.bucket, pl.filter))
File "<masked>/lib/python3.10/site-packages/quilt3_local/async_cache.py", line 53, in wrapper
return await asyncio.shield(fut)
File "<masked>/lib/python3.10/site-packages/quilt3_local/packages.py", line 188, in get_all_package_pointers
by_etag[name][etag].tags.append(tag)
graphql.error.graphql_error.GraphQLError: '"325c4e3d3883e66f55bafd462afd65fd"'
GraphQL request:3:5
2 | packages(bucket: $bucket, filter: $filter) {
3 | total
| ^
4 | __typename
INFO: <masked>:60674 - "POST / HTTP/1.1" 200 OK
'"325c4e3d3883e66f55bafd462afd65fd"'
GraphQL request:3:5
2 | packages(bucket: $bucket, filter: $filter) {
3 | page(number: $page, perPage: $perPage, order: $order) {
| ^
4 | bucket
Traceback (most recent call last):
File "<masked>/lib/python3.10/site-packages/graphql/execution/execute.py", line 625, in await_result
return_type, field_nodes, info, path, await result
File "<masked>/lib/python3.10/site-packages/ariadne/utils.py", line 69, in async_wrapper
return await func(*args, **convert_to_snake_case(kwargs))
File "<masked>/lib/python3.10/site-packages/quilt3_local/graphql.py", line 162, in package_list_page
pointers = await packages.get_all_package_pointers(pl.bucket, pl.filter)
File "<masked>/lib/python3.10/site-packages/quilt3_local/async_cache.py", line 53, in wrapper
return await asyncio.shield(fut)
File "<masked>/lib/python3.10/site-packages/quilt3_local/packages.py", line 188, in get_all_package_pointers
by_etag[name][etag].tags.append(tag)
KeyError: '"325c4e3d3883e66f55bafd462afd65fd"'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<masked>/lib/python3.10/site-packages/graphql/execution/execute.py", line 628, in await_result
return await completed
File "<masked>/lib/python3.10/site-packages/graphql/execution/execute.py", line 456, in get_results
await gather(*(results[field] for field in awaitable_fields)),
File "<masked>/lib/python3.10/site-packages/graphql/execution/execute.py", line 632, in await_result
self.handle_field_error(error, return_type)
File "<masked>/lib/python3.10/site-packages/graphql/execution/execute.py", line 666, in handle_field_error
raise error
File "<masked>/lib/python3.10/site-packages/graphql/execution/execute.py", line 625, in await_result
return_type, field_nodes, info, path, await result
File "<masked>/lib/python3.10/site-packages/ariadne/utils.py", line 69, in async_wrapper
return await func(*args, **convert_to_snake_case(kwargs))
File "<masked>/lib/python3.10/site-packages/quilt3_local/graphql.py", line 162, in package_list_page
pointers = await packages.get_all_package_pointers(pl.bucket, pl.filter)
File "<masked>/lib/python3.10/site-packages/quilt3_local/async_cache.py", line 53, in wrapper
return await asyncio.shield(fut)
File "<masked>/lib/python3.10/site-packages/quilt3_local/packages.py", line 188, in get_all_package_pointers
by_etag[name][etag].tags.append(tag)
graphql.error.graphql_error.GraphQLError: '"325c4e3d3883e66f55bafd462afd65fd"'
GraphQL request:3:5
2 | packages(bucket: $bucket, filter: $filter) {
3 | page(number: $page, perPage: $perPage, order: $order) {
| ^
4 | bucket