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

**URL:** <https://discuss.elastic.co/t/kibana-getting-missing-authentication-credentials-for-rest-request-after-creating-plugin/344514>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [October 6, 2023, 2:55am UTC](https://discuss.elastic.co/t/kibana-getting-missing-authentication-credentials-for-rest-request-after-creating-plugin/344514 "2023-10-06T02:55:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshay\_Kumar\_Gupta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshay_kumar_gupta/32/126305_2.png) [@Akshay\_Kumar\_Gupta](https://discuss.elastic.co/u/Akshay_Kumar_Gupta)\
**Post date:** [October 6, 2023, 2:55am UTC](https://discuss.elastic.co/t/kibana-getting-missing-authentication-credentials-for-rest-request-after-creating-plugin/344514/1 "2023-10-06T02:55:26Z")

</div>

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.

```auto
{
"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:

```auto
[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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 3, 2023, 2:55am UTC](https://discuss.elastic.co/t/kibana-getting-missing-authentication-credentials-for-rest-request-after-creating-plugin/344514/2 "2023-11-03T02:55:54Z")

</div>

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