Skip to content

Instantly share code, notes, and snippets.

@skarmark
Created October 7, 2015 18:06
Show Gist options
  • Save skarmark/0e6ab39d063076adfb35 to your computer and use it in GitHub Desktop.
Save skarmark/0e6ab39d063076adfb35 to your computer and use it in GitHub Desktop.
$ st2 --debug rule list
# -------- begin 139853773692176 request ----------
curl -X GET -H 'Accept-Encoding: gzip, deflate, compress' -H 'Accept: */*' -H 'User-Agent: python-requests/2.2.1 CPython/2.7.6 Linux/3.13.0-49-generic' http://localhost:9101/v1/rules
# -------- begin 139853773692176 response ----------
{
"faultstring": "Missing TriggerDB object for rule 56142d81475e061098c481f5"
}
# -------- end 139853773692176 response ------------
ERROR: 400 Client Error: Bad Request
MESSAGE: Missing TriggerDB object for rule 56142d81475e061098c481f5
CLI settings:
----------------
Config file path: /home/winstoncdeprod/.st2/config
Client settings:
----------------
ST2_BASE_URL: http://localhost
ST2_AUTH_URL: http://localhost:9100
ST2_API_URL: http://localhost:9101/v1
ST2_AUTH_TOKEN: None
Proxy settings:
---------------
HTTP_PROXY:
HTTPS_PROXY:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/st2client/shell.py", line 321, in run
args.func(args)
File "/usr/local/lib/python2.7/dist-packages/st2client/commands/resource.py", line 237, in run_and_print
instances = self.run(args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/st2client/commands/resource.py", line 41, in decorate
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/st2client/commands/resource.py", line 259, in run
return self.manager.get_all(**filters)
File "/usr/local/lib/python2.7/dist-packages/st2client/models/core.py", line 35, in decorate
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/st2client/models/core.py", line 185, in get_all
self.handle_error(response)
File "/usr/local/lib/python2.7/dist-packages/st2client/models/core.py", line 161, in handle_error
response.raise_for_status()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 773, in raise_for_status
raise HTTPError(http_error_msg, response=self)
HTTPError: 400 Client Error: Bad Request
MESSAGE: Missing TriggerDB object for rule 56142d81475e061098c481f5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment