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

AttributeError: 'NoneType' object has no attribute 'project' #890

Open
sentry-io bot opened this issue Feb 10, 2025 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'project' #890

sentry-io bot opened this issue Feb 10, 2025 · 0 comments
Labels
gain/low This doesn't bring that much value to users. impact/low This issue impacts only a few users. kind/bug Something isn't working.

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 10, 2025

Sentry Issue: PCKT-002-PACKIT-SERVICE-8VR

GitlabHttpError: 404: 404 Award Emoji Name has already been taken Not Found
  File "gitlab/exceptions.py", line 344, in wrapped_f
    return f(*args, **kwargs)
  File "gitlab/mixins.py", line 301, in create
    server_data = self.gitlab.http_post(path, post_data=data, files=files, **kwargs)
  File "gitlab/client.py", line 1014, in http_post
    result = self.http_request(
  File "gitlab/client.py", line 793, in http_request
    raise gitlab.exceptions.GitlabHttpError(

GitlabCreateError: 404: 404 Award Emoji Name has already been taken Not Found
  File "ogr/services/gitlab/comments.py", line 73, in add_reaction
    reaction_obj = self._raw_comment.awardemojis.create({"name": reaction})
  File "gitlab/exceptions.py", line 346, in wrapped_f
    raise error(e.error_message, e.response_code, e.response_body) from e

AttributeError: 'NoneType' object has no attribute 'project'
(7 additional frame(s) were not displayed)
...
  File "packit_service/worker/jobs.py", line 510, in process_jobs
    handler_classes = self.get_handlers_for_event()
  File "packit_service/worker/jobs.py", line 850, in get_handlers_for_event
    handlers_triggered_by_job = self.get_handlers_for_comment_and_rerun_event()
  File "packit_service/worker/jobs.py", line 824, in get_handlers_for_comment_and_rerun_event
    self.event.comment_object.add_reaction(COMMENT_REACTION)
  File "ogr/abstract.py", line 106, in wrapper
    return function(*args, **kwargs)
  File "ogr/services/gitlab/comments.py", line 80, in add_reaction
    getattr(self._parent, "_target_project", None) or self._parent.project
@lbarcziova lbarcziova added kind/bug Something isn't working. gain/low This doesn't bring that much value to users. impact/low This issue impacts only a few users. labels Feb 10, 2025
@lachmanfrantisek lachmanfrantisek moved this from new to backlog in Packit Kanban Board Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gain/low This doesn't bring that much value to users. impact/low This issue impacts only a few users. kind/bug Something isn't working.
Projects
Status: backlog
Development

No branches or pull requests

1 participant