This was my error, b/c I configured docket to pull from the wrong IP endpoint, but ideally the process doesn't stand on it's head when this happens.
2018039T02:25:42[MainProcess:140099298334848] Starting new HTTPS connection (1): 127.0.0.1
2018039T02:25:42[MainProcess:140099298334848] Stats: 127.0.0.1:1234 Connection Error? hostname '127.0.0.1' doesn't match u'192.168.192.4'
2018039T02:25:42[MainProcess:140099298334848] Exception on /stats/ [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python2.7/site-packages/flask_restful/__init__.py", line 477, in wrapper
resp = resource(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view
return self.dispatch_request(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/flask_restful/__init__.py", line 587, in dispatch_request
resp = meth(*args, **kwargs)
File "/opt/rocknsm/docket/docket/resources/query.py", line 800, in get
stats = get_stats(selected_sensors=selected)
File "/opt/rocknsm/docket/docket/tasks.py", line 81, in get_stats
raise ex
SSLError: hostname '127.0.0.1' doesn't match u'192.168.192.4'