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

Exception in Matrix event handler: AttributeError: 'str' object has no attribute 'get' #42

Open
jaller94 opened this issue Mar 4, 2022 · 1 comment

Comments

@jaller94
Copy link

jaller94 commented Mar 4, 2022

This error happened several times:

  • 2022-03-04 12:23:10,395
  • 2022-03-04 12:23:41,433
  • 2022-03-04 12:29:42,257
  • 2022-03-04 12:30:38,447
[[email protected]] Exception in Matrix event handler
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/mautrix/appservice/as_handler.py", line 239, in try_handle
    await handler_func(event)
  File "/usr/lib/python3.9/site-packages/mautrix/bridge/matrix.py", line 771, in int_handle_event
    await self.handle_leave(evt.room_id, UserID(evt.state_key), evt.event_id)
  File "/usr/lib/python3.9/site-packages/mautrix_telegram/matrix.py", line 196, in handle_leave
    await portal.leave_matrix(user, event_id)
  File "/usr/lib/python3.9/site-packages/mautrix_telegram/portal.py", line 1387, in leave_matrix
    await self._send_state_change_message("leave", user, event_id)
  File "/usr/lib/python3.9/site-packages/mautrix_telegram/portal.py", line 1211, in _send_state_change_message
    message = await self._get_state_change_message(event, user, **kwargs)
  File "/usr/lib/python3.9/site-packages/mautrix_telegram/portal.py", line 1186, in _get_state_change_message
    tpl = self.get_config(f"state_event_formats.{event}")
  File "/usr/lib/python3.9/site-packages/mautrix_telegram/portal.py", line 3151, in get_config
    local = util.recursive_get(self.local_config, key)
  File "/usr/lib/python3.9/site-packages/mautrix_telegram/util/recursive_dict.py", line 42, in recursive_get
    return recursive_get(next_data, next_key)
  File "/usr/lib/python3.9/site-packages/mautrix_telegram/util/recursive_dict.py", line 43, in recursive_get
    return data.get(key, None)
AttributeError: 'str' object has no attribute 'get'

Affected versions

  • mautrix-telegram-v0.11.0-mod-3
@jaller94 jaller94 changed the title Exception in Matrix event handler Exception in Matrix event handler: AttributeError: 'str' object has no attribute 'get' Mar 4, 2022
@jaller94
Copy link
Author

jaller94 commented Mar 9, 2022

Upstream issue: mautrix#708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant