You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is issue in API v2 when retrieving all packages, it looks like there is at least one package that is not associated to any project. This shouldn't happen anymore after #608, but it seems that there are still a few packages left that weren't deleted.
[2021-04-09 12:01:55,131 anitya.app ERROR] Exception on /api/v2/packages/ [GET]
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3.8/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python3.8/site-packages/flask_restful/__init__.py", line 468, in wrapper
resp = resource(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/flask/views.py", line 89, in view
return self.dispatch_request(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/flask_restful/__init__.py", line 583, in dispatch_request
resp = meth(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/anitya/api_v2.py", line 140, in get
"items": [
File "/usr/local/lib/python3.8/site-packages/anitya/api_v2.py", line 144, in <listcomp>
"project": package.project.name,
AttributeError: 'NoneType' object has no attribute 'name'
The text was updated successfully, but these errors were encountered:
I tried today curl https://release-monitoring.org/api/v2/packages/ and didn't encounter this issue. I'm not sure what was changed, but this could be closed now.
There is issue in API v2 when retrieving all packages, it looks like there is at least one package that is not associated to any project. This shouldn't happen anymore after #608, but it seems that there are still a few packages left that weren't deleted.
The text was updated successfully, but these errors were encountered: