hangups icon indicating copy to clipboard operation
hangups copied to clipboard

Crash when interacting with users who sent you an invitation

Open martinpelikan opened this issue 5 years ago • 0 comments

I've had a few spam accounts add me on Hangouts that I never accepted/declined through the web interface. I noticed their names show up in my conversations list, so I opened up one up to see what would happen. Hangups crashed soon after that with the stack trace posted below.

It looks like navigating away from a conversation with a user you haven't added, or typing (even without sending the message) to that user, attempts to update the conversation status and crashes after that.

Traceback (most recent call last):
  File "/home/redacted/.pyenv/versions/hangups/bin/hangups", line 11, in <module>
    load_entry_point('hangups==0.4.9', 'console_scripts', 'hangups')()
  File "/home/redacted/.pyenv/versions/hangups/lib/python3.7/site-packages/hangups/ui/__main__.py", line 1207, in main
    args.manual_login
  File "/home/redacted/.pyenv/versions/hangups/lib/python3.7/site-packages/hangups/ui/__main__.py", line 130, in __init__
    loop.run_until_complete(asyncio.gather(*coros))
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/home/redacted/.pyenv/versions/hangups/lib/python3.7/site-packages/hangups/ui/__main__.py", line 287, in consume
    await coro
  File "/home/redacted/.pyenv/versions/hangups/lib/python3.7/site-packages/hangups/conversation.py", line 604, in update_read_timestamp
    read_timestamp
  File "/home/redacted/.pyenv/versions/hangups/lib/python3.7/site-packages/hangups/client.py", line 681, in update_watermark
    update_watermark_request, response)
  File "/home/redacted/.pyenv/versions/hangups/lib/python3.7/site-packages/hangups/client.py", line 435, in _pb_request
    .format(status, description)
hangups.exceptions.NetworkError: Request failed with status 4: 'User must accept invitation before updating watermarks.'

martinpelikan avatar Apr 01 '19 21:04 martinpelikan