-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Labels
Team:EcosystemLabel for the Packages Ecosystem teamLabel for the Packages Ecosystem teambugSomething isn't workingSomething isn't working
Description
Relates #1922
Using elastic-package
to export dashboards from a Serverless project fails due to the API used to find the dashboards:
$ elastic-package export dashboards -v
2025/09/24 11:58:53 WARN CommitHash is undefined, in both /home/user/.elastic-package/version and the compiled binary, config may be out of date.
2025/09/24 11:58:53 DEBUG Enable verbose logging
2025/09/24 11:58:53 DEBUG Running command in directory "../integrations/packages/elastic_package_registry/"
2025/09/24 11:58:53 DEBUG latest version (cached): v0.115.0. Download from: https://github.com/elastic/elastic-package/releases/tag/v0.115.0 (Timestamp 2025-09-24 11:53:38.470173433 +0200 CEST)
Export Kibana dashboards
2025/09/24 11:58:53 DEBUG Connecting with Kibana host from current profile (profile: serverless, host: "https://elastic-package-test-serverless-<id>.kb.eu-west-1.aws.qa.elastic.cloud/")
2025/09/24 11:58:53 DEBUG Find dashboards using the Saved Objects API
Error: prompt for dashboard selection failed: finding dashboards failed: can't fetch page with results: could not find dashboards; API status code = 400; response body = {"statusCode":400,"error":"Bad Request","message":"uri [/api/saved_objects/_find] with method [get] exists but is not available with the current configuration"}
The API that it is failing is the one to look for the available dashboards in the stack:
path := fmt.Sprintf("%s/_find?type=dashboard&fields=title&per_page=%d&page=%d", SavedObjectsAPI, findDashboardsPerPage, page) |
A part from the error given when it is used in Serverless, this API is also marked as deprecated:
https://www.elastic.co/docs/api/doc/kibana/v8/operation/operation-findsavedobjects
Could this API be replaced for another one to keep the same behavior?
How to reproduce this error
- Start a new elastic-package with the serverless provider as detailed in https://github.com/elastic/elastic-package/blob/main/docs/howto/use_serverless_stack.md#the-serverless-stack-provider
- Install a package and run export dashboards
cd /path/to/package
elastic-package install -v
elastic-package export dashboards -v
Metadata
Metadata
Assignees
Labels
Team:EcosystemLabel for the Packages Ecosystem teamLabel for the Packages Ecosystem teambugSomething isn't workingSomething isn't working