Skip to content

KeyError: 4 #4

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

Closed
zzzeek opened this issue Jul 12, 2019 · 2 comments
Closed

KeyError: 4 #4

zzzeek opened this issue Jul 12, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@zzzeek
Copy link
Member

zzzeek commented Jul 12, 2019

starting up in collectd server, got this:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.6/site-packages/sqlalchemy_collectd/server/listener.py", line 6, in _receive
    receiver.receive(connection)
  File "/usr/lib/python3.6/site-packages/sqlalchemy_collectd/server/receiver.py", line 37, in receive
    message = self.message_receiver.receive(data)
  File "/usr/lib/python3.6/site-packages/sqlalchemy_collectd/protocol.py", line 225, in receive
    type_name = result[TYPE_TYPE]
KeyError: 4

@zzzeek zzzeek added the bug Something isn't working label Jul 12, 2019
@zzzeek
Copy link
Member Author

zzzeek commented Jul 12, 2019

OK so this is just because I was trying to wake it up and did this:

# nc -u 127.0.0.1 25827
askdjadkj

asdadsfd

then because of #5 the whole thread crashed and it didn't log it. so #5 is more critical here.

@sqla-tester
Copy link
Collaborator

Mike Bayer has proposed a fix for this issue in the master branch:

Catch KeyError for TYPE_TYPE missing in message https://gerrit.sqlalchemy.org/1397

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants