CB Response: Uncaught Exception when Using CBAPI
search cancel

CB Response: Uncaught Exception when Using CBAPI


Article ID: 284962


Updated On:


Carbon Black EDR (formerly Cb Response)


  • Errors from API Script
07/01/2020 04:02:20 CB_API       ERROR    Uncaught exception
Traceback (most recent call last):
  File "/var/redscan/carbonblack/cb_response.py", line 108, in <module>
    cb = get_cb_response_object(args)
  File "/usr/lib/python2.7/site-packages/cbapi/example_helpers.py", line 53, in get_cb_response_object
    cb = CbEnterpriseResponseAPI(profile=args.profile)
  File "/usr/lib/python2.7/site-packages/cbapi/response/rest_api.py", line 66, in __init__
    self.server_info = self.info()
  File "/usr/lib/python2.7/site-packages/cbapi/response/rest_api.py", line 98, in info
    r = self.session.get("/api/info")
  File "/usr/lib/python2.7/site-packages/cbapi/connection.py", line 200, in get
    return self.http_request("GET", url, **kwargs)
  File "/usr/lib/python2.7/site-packages/cbapi/connection.py", line 189, in http_request
ApiError: Unknown exception when connecting to server: unsupported operand type(s) for -=: 'Retry' and 'int'
08/01/2020 14:00:52 CB_API       INFO     Checking for new alarms on the following customer: <customer name> Carbon Black Cloud
08/01/2020 14:02:52 CB_API       ERROR    An error has occured
08/01/2020 14:02:52 CB_API       ERROR    Uncaught exception
  • coreservices/debug.log:
<err> cb.flask.blueprint_helpers - Unhandled exception from API request: list index out of range
Traceback (most recent call last):
File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/auth/authn_service.py", line 311, in wrapped_f
File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/flask/blueprints/api_blueprint.py", line 645, in process
File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/api/cbapi.py", line 68, in process
File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/api/solr.py", line 869, in process
File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/api/solr.py", line 773, in _get_children
IndexError: list index out of range



  • CB Response: All Supported Versions


  • System resource issue.


  • Verify system resources are at an adequate level, specifically CPU.