Kibana: Getting "missing authentication credentials for REST request" after creating plugin

Hi, I am trying to create a new kibana plugin. whenever I create a new plugin using node scripts/generate_plugin new_pl command and start the kibana using yarn start --oss then I get the below error on browser.

{
"statusCode": 401,
"error": "Unauthorized",
"message": "missing authentication credentials for REST request [/.kibana_8.12.0/_doc/config%3A8.12.0]: security_exception\n\tRoot causes:\n\t\tsecurity_exception: missing authentication credentials for REST request [/.kibana_8.12.0/_doc/config%3A8.12.0]"
}

and Kibana console has below error:

[2023-10-06T08:13:55.342+05:30][INFO ][status] Kibana is now available (was unavailable)
[2023-10-06T08:14:05.181+05:30][ERROR][http] 401 Unauthorized

Please help to resolve this issue. I am using latest Kibana git repository to setup the environment.

It works fine if I don't create a new plugin and start the server.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.