Skip to content

[BUG] TIL 채널의 봇의 reaction에 반응하는 문제 #104

Description

@silverstar0727

TIL 채널의 봇의 reaction에 반응하고, 처리 시 item_user 키 에러가 나는 문제

Image

event:{'type': 'reaction_added', 'user': 'U07BL68MR8F', 'reaction': '+1', 'item': {'type': 'message', 'channel': 'C07JMAK21L5', 'ts': '1769009766.626499'}, 'client_msg_id': '128D0FBD-4D00-4560-A418-BE3E2498356F', 'event_ts': '1769041131.000500'}

 exception:'item_user'
 traceback:Traceback (most recent call last):
  File "/app/src/handler/decorator.py", line 21, in wrapper
    f(*args, **kwargs)
  File "/app/src/handler/decorator.py", line 96, in wrapper
    raise ex
  File "/app/src/handler/decorator.py", line 94, in wrapper
    f(*args, **kwargs)
  File "/app/src/handler/controller.py", line 55, in join_bigchat
    JoinBigchat(
  File "/app/src/handler/bigchat/join_bigchat.py", line 18, in __init__
    self.item_user = event["item_user"]
                     ~~~~~^^^^^^^^^^^^^
KeyError: 'item_user'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions