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: 'matchedSize' #85

Open
ghost opened this issue Sep 11, 2019 · 0 comments
Open

KeyError: 'matchedSize' #85

ghost opened this issue Sep 11, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 11, 2019

Looks like lines 216 and 217 of signalfx/signalflow/computation.py are missing a reference to the contents dict:

  File "./kpi_dashboard/build_dashboard_tables.py", line 101, in signalfx_insert_app_source
    for msg in c.stream():
  File "/Users/tess/.pyenv/versions/risksys/lib/python3.7/site-packages/signalfx/signalflow/computation.py", line 164, in stream
    self._process_info_message(message.message)
  File "/Users/tess/.pyenv/versions/risksys/lib/python3.7/site-packages/signalfx/signalflow/computation.py", line 216, in _process_info_message
    self._find_matched_size = message['matchedSize']
KeyError: 'matchedSize'

for data like:

({'blockContexts': [{'column': 5, 'line': 1}], 'blockSerialNumbers': [0], 'contents': {'limitSize': 10000, 'matchedSize': 14771}, 'messageCode': 'FIND_LIMITED_RESULT_SET', 'messageLevel': 'WARNING', 'numInputTimeSeries': 0, 'timestampMs':
 1565564400000},)```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants