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

Unable to view packages in local config #20

Open
birnbera opened this issue Oct 5, 2023 · 0 comments
Open

Unable to view packages in local config #20

birnbera opened this issue Oct 5, 2023 · 0 comments

Comments

@birnbera
Copy link

birnbera commented Oct 5, 2023

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
quilt_package no_packages
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