# Kibana Own Plugin Development - Kibana/Courier not Available

**URL:** <https://discuss.elastic.co/t/kibana-own-plugin-development-kibana-courier-not-available/67585>\
**Category:** Kibana\
**Created:** [November 30, 2016, 8:06am UTC](https://discuss.elastic.co/t/kibana-own-plugin-development-kibana-courier-not-available/67585 "2016-11-30T08:06:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![PrabakarKaruppasamy](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@PrabakarKaruppasamy](https://discuss.elastic.co/u/PrabakarKaruppasamy)\
**Post date:** [November 30, 2016, 8:06am UTC](https://discuss.elastic.co/t/kibana-own-plugin-development-kibana-courier-not-available/67585/1 "2016-11-30T08:06:27Z")

</div>

Hi,

I am developing new custom plugin for kibana. I am trying to create the plugin same as visualizations. After adding the module dependency **kibana/courier** into my app i am getting the following errors.

Uncaught Error: [$injector:modulerr] Failed to instantiate module kibana due to:  
Error: [$injector:modulerr] Failed to instantiate module discover/saved\_searches due to:  
Error: [$injector:modulerr] Failed to instantiate module kibana/courier due to:  
Error: [$injector:nomod] Module 'kibana/courier' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.  
[http://errors.angularjs.org/1.4.7/$injector/nomod?p0=kibana%2Fcourier](http://errors.angularjs.org/1.4.7/%24injector/nomod?p0=kibana%2Fcourier)

Any idea on this?? What I missed here??

Thanks in Advance...

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [November 30, 2016, 11:37pm UTC](https://discuss.elastic.co/t/kibana-own-plugin-development-kibana-courier-not-available/67585/2 "2016-11-30T23:37:02Z")

</div>

You should just be able to refer to it as `courier`, not `kibana/courier` if you're using angular's dependency injection.

---

<div class="post-metadata">

**Author:** ![PrabakarKaruppasamy](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@PrabakarKaruppasamy](https://discuss.elastic.co/u/PrabakarKaruppasamy)\
**Post date:** [December 1, 2016, 12:27pm UTC](https://discuss.elastic.co/t/kibana-own-plugin-development-kibana-courier-not-available/67585/3 "2016-12-01T12:27:48Z")

</div>

> [@Bargs](#):
>
> courier

Oh..Thanks..It is resolved now..  
I have one more query where can i identify the request and response processing. That is which place Kibana making request to the elastic server and how the kibana handling or processing the response from the elastic server...

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [December 1, 2016, 5:38pm UTC](https://discuss.elastic.co/t/kibana-own-plugin-development-kibana-courier-not-available/67585/4 "2016-12-01T17:38:36Z")

</div>

Sorry, I'm not sure if I understand the question?

---

<div class="post-metadata">

**Author:** ![PrabakarKaruppasamy](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@PrabakarKaruppasamy](https://discuss.elastic.co/u/PrabakarKaruppasamy)\
**Post date:** [December 1, 2016, 5:53pm UTC](https://discuss.elastic.co/t/kibana-own-plugin-development-kibana-courier-not-available/67585/5 "2016-12-01T17:53:26Z")

</div>

Hi,

I want to understand the how request and response is happening between the  
kibana and elastic server.

Regards,  
Prabakar

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [December 2, 2016, 4:00pm UTC](https://discuss.elastic.co/t/kibana-own-plugin-development-kibana-courier-not-available/67585/6 "2016-12-02T16:00:45Z")

</div>

A lot of the search related requests happen in courier, but that's not the only piece of code that makes requests to ES. Kibana uses the elasticsearch.js client and you'll see its use throughout the code. On the frontend you'll see the [es service](https://github.com/elastic/kibana/blob/34e3f498fcd2d610759741b275180bc0e16a8cec/src/ui/public/es.js#L15-L15) being used, on the backend you'll see the es client being accessed as a Hapi plugin.

So it's a bit of a complicated question, there isn't one piece of code that handles all requests/responses.

---

<div class="post-metadata">

**Author:** ![PrabakarKaruppasamy](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@PrabakarKaruppasamy](https://discuss.elastic.co/u/PrabakarKaruppasamy)\
**Post date:** [December 5, 2016, 7:55am UTC](https://discuss.elastic.co/t/kibana-own-plugin-development-kibana-courier-not-available/67585/7 "2016-12-05T07:55:27Z")

</div>

Thanking so much....

I will look into that...

---

<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:** [January 2, 2017, 7:55am UTC](https://discuss.elastic.co/t/kibana-own-plugin-development-kibana-courier-not-available/67585/8 "2017-01-02T07:55:31Z")

</div>

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