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

KeyError: 'ds:7' in hangups #659

Closed
Raptor123471 opened this issue Nov 10, 2016 · 10 comments
Closed

KeyError: 'ds:7' in hangups #659

Raptor123471 opened this issue Nov 10, 2016 · 10 comments

Comments

@Raptor123471
Copy link

error.txt

Log included in text document.

@nylonee
Copy link
Contributor

nylonee commented Nov 10, 2016

Getting the same error here:

18:27:34 INFO config: /root/.local/share/hangupsbot/config.json read
18:27:34 INFO root: memory = /root/.local/share/hangupsbot/memory.json, failsafe = 3, delay = 1
18:27:34 INFO config: /root/.local/share/hangupsbot/memory.json read
18:27:34 INFO requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): accounts.google.com
18:27:34 INFO requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): www.google.com
18:27:34 INFO requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): www.google.com.sg
18:27:35 ERROR root: CLIENT: unrecoverable low-level error
Traceback (most recent call last):
  File "/usr/local/share/hangupsenv/lib/python3.5/site-packages/hangups/client.py", line 227, in _initialize_chat
    self._api_key = data_dict['ds:7'][0][2]
KeyError: 'ds:7'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "hangoutsbot/hangupsbot/hangupsbot.py", line 164, in run
    loop.run_until_complete(self._client.connect())
  File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/usr/local/share/hangupsenv/lib/python3.5/site-packages/hangups/client.py", line 109, in connect
    initial_data = yield from self._initialize_chat()
  File "/usr/local/share/hangupsenv/lib/python3.5/site-packages/hangups/client.py", line 241, in _initialize_chat
    'value: {}'.format(e))
hangups.exceptions.HangupsError: Failed to get initialize chat value: 'ds:7'
Client unexpectedly disconnected:
Failed to get initialize chat value: 'ds:7'

This appears to be a hangups issue, @tdryer might know more.

@JosephBlock
Copy link
Contributor

within hangups/client.py
change
CHAT_INIT_PARAMS = { 'prop': 'aChromeExtension', 'fid': 'gtn-roster-iframe-id', 'ec': '["ci:ec",true,true,false]', 'pvt': None, # Populated later }
to
CHAT_INIT_PARAMS = { 'prop': 'StartPage', 'fid': 'gtn-roster-iframe-id', 'ec': '["ci:ec",true,true,false]', 'pvt': None, # Populated later }

@JosephBlock
Copy link
Contributor

@Teleken
Copy link

Teleken commented Nov 10, 2016

Thanks guys for fixing this so quickly!

@lindi200000
Copy link

Yes thx for fix.
https://github.com/hangoutsbot/hangups/pull/5/files works perfect :)

@csansone
Copy link

Not to be a parrot, but thanks so much for the quick fix, it is greatly appreciated!

@azack
Copy link
Contributor

azack commented Nov 22, 2016

pip3 install -r requirements.txt --upgrade may also help.

@nylonee nylonee closed this as completed Jan 27, 2017
@1Z4N4G1
Copy link

1Z4N4G1 commented May 22, 2018

I've got this error these days.

pip3 install -r requirements.txt --upgrade

doesn't work for me...

@Terrance
Copy link
Member

Another possible response change, see #925 and tdryer/hangups#413.

@1Z4N4G1
Copy link

1Z4N4G1 commented May 22, 2018

Run git checkout v3.0 and then pip3 install -r requirements.txt works!
thank you @OllieTerrance

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

No branches or pull requests

9 participants