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

cometd.py KeyError in initHandshake #12

Open
GoogleCodeExporter opened this issue Mar 26, 2015 · 0 comments
Open

cometd.py KeyError in initHandshake #12

GoogleCodeExporter opened this issue Mar 26, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Start the default/example cometd.py server
2. Start the twisted-cometd-client.py
3. Watch it throw a KeyError-Exception

Expected output: Connecting to the server, subscribing to topics.

Observed output: KeyError being raised
  File ".../python2.5/site-packages/cometd.py", line 491, in initHandshake
   if message["id"] is not None:
  exceptions.KeyError: 'id'


With: cometd-twisted SVN Rev. 462, Python2.5, Ubuntu Linux Gutsy.

Could be fixed with checking message.has_key("id") before trying to access it.
Or the twisted-cometd-client.py is the culprit with not sending a "id" field.

Both should be fixed ;)

Original issue reported on code.google.com by jessicat...@gmail.com on 17 Jan 2008 at 12:27

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

1 participant