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

"Could not find input entity" and lost messages #229

Closed
Valodim opened this issue Sep 21, 2018 · 1 comment
Closed

"Could not find input entity" and lost messages #229

Valodim opened this issue Sep 21, 2018 · 1 comment
Labels
bug: unclassified Something isn't working and it may or may not have worked in the past
Milestone

Comments

@Valodim
Copy link

Valodim commented Sep 21, 2018

[2018-09-21 17:39:42,884] [[email protected]] Failed to handle Telegram update
Traceback (most recent call last):
  File "/home/matrix/matrix-appservice-tg/lib/python3.5/site-packages/mautrix_telegram/abstract_user.py", line 133, in _update_catch
    await self._update(update)
  File "/home/matrix/matrix-appservice-tg/lib/python3.5/site-packages/mautrix_telegram/abstract_user.py", line 189, in _update
    await self.update_message(update)
  File "/home/matrix/matrix-appservice-tg/lib/python3.5/site-packages/mautrix_telegram/abstract_user.py", line 370, in update_message
    return await portal.handle_telegram_message(self, sender, update)
  File "/home/matrix/matrix-appservice-tg/lib/python3.5/site-packages/mautrix_telegram/portal.py", line 1394, in handle_telegram_message
    await self.create_matrix_room(source, invites=[source.mxid], update_if_exists=False)
  File "/home/matrix/matrix-appservice-tg/lib/python3.5/site-packages/mautrix_telegram/portal.py", line 304, in create_matrix_room
    return await self._create_matrix_room(user, entity, invites)
  File "/home/matrix/matrix-appservice-tg/lib/python3.5/site-packages/mautrix_telegram/portal.py", line 317, in _create_matrix_room
    entity = await user.client.get_entity(self.peer)
  File "/home/matrix/matrix-appservice-tg/lib/python3.5/site-packages/telethon/client/users.py", line 168, in get_entity
    inputs.append(await self.get_input_entity(x))
  File "/home/matrix/matrix-appservice-tg/lib/python3.5/site-packages/telethon/client/users.py", line 297, in get_input_entity
    .format(peer)
ValueError: Could not find the input entity for "PeerUser(user_id=680809749)". Please read https://telethon.readthedocs.io/en/latest/extra/basic/entities.html to find out more details.

got a bunch of these in my log, and reports from one user that messages from a specific other user consistently don't get through

@kliu128
Copy link

kliu128 commented Nov 12, 2018

I just got the same error when making a new p2p chat with a new user that I hadn't talked to before:

[2018-11-12 15:29:00,587] [[email protected]] Failed to handle Telegram update
Traceback (most recent call last):
  File "/opt/mautrix-telegram/mautrix_telegram/abstract_user.py", line 133, in _update_catch
    await self._update(update)
  File "/opt/mautrix-telegram/mautrix_telegram/abstract_user.py", line 189, in _update
    await self.update_message(update)
  File "/opt/mautrix-telegram/mautrix_telegram/abstract_user.py", line 382, in update_message
    return await portal.handle_telegram_message(self, sender, update)
  File "/opt/mautrix-telegram/mautrix_telegram/portal.py", line 1439, in handle_telegram_message
    await self.create_matrix_room(source, invites=[source.mxid], update_if_exists=False)
  File "/opt/mautrix-telegram/mautrix_telegram/portal.py", line 328, in create_matrix_room
    return await self._create_matrix_room(user, entity, invites)
  File "/opt/mautrix-telegram/mautrix_telegram/portal.py", line 341, in _create_matrix_room
    entity = await user.client.get_entity(self.peer)
  File "/usr/lib/python3.6/site-packages/telethon/client/users.py", line 180, in get_entity
    inputs.append(await self.get_input_entity(x))
  File "/usr/lib/python3.6/site-packages/telethon/client/users.py", line 310, in get_input_entity
    .format(peer)
ValueError: Could not find the input entity for "PeerUser(user_id=16223347)". Please read https://telethon.readthedocs.io/en/latest/extra/basic/entities.html to find out more details.

@tulir tulir added this to the 0.4.0 milestone Nov 15, 2018
@tulir tulir added the bug: unclassified Something isn't working and it may or may not have worked in the past label Nov 15, 2018
@tulir tulir closed this as completed in 2dfc05d Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: unclassified Something isn't working and it may or may not have worked in the past
Development

No branches or pull requests

3 participants