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

Removing a comment on a task - KeyError: 'project_id' #78

Open
2 tasks done
johhnry opened this issue Sep 12, 2024 · 0 comments
Open
2 tasks done

Removing a comment on a task - KeyError: 'project_id' #78

johhnry opened this issue Sep 12, 2024 · 0 comments
Labels
community Issues and PRs coming from the community members type: bug Something isn't working

Comments

@johhnry
Copy link

johhnry commented Sep 12, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

I get the following error when removing a comment from a task in Kitsu.

Expected Behavior:

Currently the plugin does not seem to sync messages but if it does it should handle the missing project_id key from the data payload.

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

  1. Delete a comment on a task

image

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

2024-09-12 16:02:57 INFO       Kitsu Service   create_or_update_task: {'task_id': '553525c6-7c68-461a-99ac-ca5b25e1e3e7'}
Exception in thread Thread-27 (_handle_eio_message):
Traceback (most recent call last):
File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.11/site-packages/socketio/client.py", line 512, in _handle_eio_message
self._handle_event(pkt.namespace, pkt.id, pkt.data)
File "/usr/local/lib/python3.11/site-packages/socketio/client.py", line 386, in _handle_event
r = self._trigger_event(data[0], namespace, *data[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/socketio/client.py", line 434, in _trigger_event
return handler(*args)
^^^^^^^^^^^^^^
File "/service/processor/processor.py", line 209, in <lambda>
lambda data: create_or_update_task(self, data),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/service/processor/update_from_kitsu.py", line 197, in create_or_update_task
project_name = parent.get_paired_ayon_project(data["project_id"])
~~~~^^^^^^^^^^^^^^
KeyError: 'project_id'

Additional context:

No response

@m-u-r-p-h-y m-u-r-p-h-y added type: bug Something isn't working community Issues and PRs coming from the community members labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Issues and PRs coming from the community members type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants