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

Failed to collect package #486

Closed
pombredanne opened this issue Jun 29, 2024 · 1 comment
Closed

Failed to collect package #486

pombredanne opened this issue Jun 29, 2024 · 1 comment
Labels
bug Something isn't working high priority High Priority

Comments

@pombredanne
Copy link
Member

Calling the collect API endpoint with pkg:maven/org.elasticsearch.plugin/[email protected] I get a 500 error with this trace:


   File "/usr/local/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
     response = get_response(request)
                ^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
     response = wrapped_callback(request, *callback_args, **callback_kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner
     return func(*args, **kwds)
            ^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/django/views/decorators/csrf.py", line 65, in _view_wrapper
     return view_func(request, *args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/rest_framework/viewsets.py", line 124, in view
     return self.dispatch(request, *args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/rest_framework/views.py", line 509, in dispatch
     response = self.handle_exception(exc)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/rest_framework/views.py", line 469, in handle_exception
     self.raise_uncaught_exception(exc)
   File "/usr/local/lib/python3.11/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
     raise exc
   File "/usr/local/lib/python3.11/site-packages/rest_framework/views.py", line 506, in dispatch
     response = handler(request, *args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/app/packagedb/api.py", line 834, in list
     get_source_package_and_add_to_package_set(package)
   File "/usr/local/lib/python3.11/site-packages/purl2vcs/find_source_repo.py", line 170, in get_source_package_and_add_to_package_set
     package_set_ids = set(package.package_sets.all().values("uuid"))
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 TypeError: unhashable type: 'dict'

@pombredanne pombredanne added bug Something isn't working high priority High Priority labels Jun 29, 2024
pombredanne added a commit that referenced this issue Jun 29, 2024
Reference: #486
Signed-off-by: Philippe Ombredanne <[email protected]>
pombredanne added a commit that referenced this issue Jun 29, 2024
Reference: #486
Signed-off-by: Philippe Ombredanne <[email protected]>
JonoYang pushed a commit that referenced this issue Jul 16, 2024
Reference: #486
Signed-off-by: Philippe Ombredanne <[email protected]>
@JonoYang
Copy link
Member

This has been merged in #487

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority High Priority
Projects
None yet
Development

No branches or pull requests

2 participants