elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.82k stars 8.21k forks source link

[Console] Autocomplete suggestions are not displayed on Serverless #163318

Open yuliacech opened 1 year ago

yuliacech commented 1 year ago

Kibana version: current main 208040e0fb207825c509b56237787b0b15dde5d7 Elasticsearch version: 8.10 snapshot Server OS version: macos ventura 13..5 Browser version: google chrome Version 115.0.5790.170 (Official Build) (arm64) Browser OS version: macos ventura 13..5 Original install method (e.g. download page, yum, from source, etc.): from source Describe the bug: No autocomplete suggestions are displayed in Console when running Kibana in serverless mode Steps to reproduce:

  1. Start ES and Kibana with yarn es snapshot and yarn start --serverless
  2. Navigate to Console
  3. Start typing any request, for example GET /_search

Expected behavior: Autocomplete suggestions are displayed Screenshots (if relevant):

https://github.com/elastic/kibana/assets/6585477/e0b46c71-eec0-4890-8231-714319b86f74

Errors in browser console (if relevant):

GET http://localhost:5601/vzl/api/console/api_server 400 (Bad Request)
failed to load API 'undefined': {"statusCode":400,"error":"Bad Request","message":"uri [http://0.0.0.0:5603/api/console/api_server] with method [get] exists but is not available with the current configuration"}

Provide logs and/or server output (if relevant):

Any additional context: The request to /api/console/api_server is sent using jQuery ajax. This needs to be refactored to use the Kibana http client instead. See this file for more details

elasticmachine commented 1 year ago

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

alisonelizabeth commented 1 year ago

A temporary solution was implemented in https://github.com/elastic/kibana/pull/163301.

elasticmachine commented 1 month ago

Pinging @elastic/kibana-management (Team:Kibana Management)