Skip to content

saved objects dump error #28

Description

@vjranagit

while dumping the kibana saved objects

getting below error

INFO:elastic_stacker:Configuration was read from stacker.yaml
ERROR:elastic_stacker:Request to GET https://hostname/api/kibana/management/saved_objects/_allowed_types failed: uri [/api/kibana/management/saved_objects/_allowed_types] with method [get] exists but is not available with the current configuration
Traceback (most recent call last):
File "/opt/homebrew/bin/stacker", line 8, in
sys.exit(main())
File "/opt/homebrew/lib/python3.10/site-packages/elastic_stacker/init.py", line 11, in main
fire.Fire(Stacker)
File "/opt/homebrew/lib/python3.10/site-packages/fire/core.py", line 135, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/opt/homebrew/lib/python3.10/site-packages/fire/core.py", line 468, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/opt/homebrew/lib/python3.10/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/opt/homebrew/lib/python3.10/site-packages/elastic_stacker/kibana/saved_objects.py", line 267, in dump
known_types = {t["name"] for t in self.types()["types"]}
File "/opt/homebrew/lib/python3.10/site-packages/elastic_stacker/kibana/saved_objects.py", line 38, in types
response = self._client.get(
File "/opt/homebrew/lib/python3.10/site-packages/httpx/_client.py", line 1053, in get
return self.request(
File "/opt/homebrew/lib/python3.10/site-packages/httpx/_client.py", line 825, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/opt/homebrew/lib/python3.10/site-packages/httpx/_client.py", line 914, in send
response = self._send_handling_auth(
File "/opt/homebrew/lib/python3.10/site-packages/httpx/_client.py", line 942, in _send_handling_auth
response = self._send_handling_redirects(
File "/opt/homebrew/lib/python3.10/site-packages/httpx/_client.py", line 999, in _send_handling_redirects
raise exc
File "/opt/homebrew/lib/python3.10/site-packages/httpx/_client.py", line 982, in _send_handling_redirects
hook(response)
File "/opt/homebrew/lib/python3.10/site-packages/elastic_stacker/utils/client.py", line 15, in raise_for_status
response.raise_for_status()
File "/opt/homebrew/lib/python3.10/site-packages/httpx/_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://hostnae/api/kibana/management/saved_objects/_allowed_types'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400

the issue has been resolved in the pull request

#27

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions