Traceback (most recent call last):


 "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2client/shell.py", line 343, in run

func(args)


 "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2client/commands/resource.py", line 259, in run_and_print

instances = self.run(args, **kwargs)


 "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2client/commands/resource.py", line 47, in decorate

return func(*args, **kwargs)


 "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2client/commands/pack.py", line 359, in run

return self.manager.search(args, **kwargs)


 "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2client/models/core.py", line 40, in decorate

return func(*args, **kwargs)


 "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2client/models/core.py", line 511, in search

if response.status_code != http_client.OK:
UnboundLocalError: local variable 'response' referenced before assignment```
Traceback (most recent call last):


 "/local/path/venv3/lib/python3.7/site-packages/requests/adapters.py", line 449, in send

timeout=timeout


 "/local/path/venv3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen

method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]


 "/local/path/venv3/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment

raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='example.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x108b00890>: Failed to establish a new connection: [Errno 61] Connection refused'))
