# Unable to start the Open edX plugins template

**URL:** <https://discuss.openedx.org/t/unable-to-start-the-open-edx-plugins-template/12079>\
**Category:** Development\
**Tags:** how-to, tutor\
**Created:** [January 14, 2024, 6:45am UTC](https://discuss.openedx.org/t/unable-to-start-the-open-edx-plugins-template/12079 "2024-01-14T06:45:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subodh\_Poudel](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/subodh_poudel/32/6294_2.png) [@Subodh\_Poudel](https://discuss.openedx.org/u/Subodh_Poudel)\
**Post date:** [January 14, 2024, 6:45am UTC](https://discuss.openedx.org/t/unable-to-start-the-open-edx-plugins-template/12079/1 "2024-01-14T06:45:04Z")

</div>

Hello. I want to build my own (react + django) app and use it as the plugin in open edx tutor (version 17.0.0). First i generated the frontend-app- template from [[this template](https://github.com/openedx/frontend-template-application)]. i cloned it in my local device and installed it. when i start the app it displays error message (“An unexpected error occurred. Please click the button below to refresh the page.”). How can i successfully start the app and customize it and use it as plugins?. Thank you.  
Note: i have tutor running in my background.

---

<div class="post-metadata">

**Author:** ![Syed\_Muhammad\_Dawoud](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/syed_muhammad_dawoud/32/6313_2.png) [@Syed\_Muhammad\_Dawoud](https://discuss.openedx.org/u/Syed_Muhammad_Dawoud)\
**Post date:** [January 15, 2024, 1:50pm UTC](https://discuss.openedx.org/t/unable-to-start-the-open-edx-plugins-template/12079/2 "2024-01-15T13:50:34Z")

</div>

Hi. Please check out the thread [How to create and integrate my custom Django REST app to Tutor](https://discuss.openedx.org/t/how-to-create-and-integrate-my-custom-django-rest-app-to-tutor/11991). The thread is similar to the thing you are trying to achieve.  
One thing: you have cloned the MFE template but how are you configuring it within Tutor? By following [GitHub - overhangio/tutor-mfe: This plugin makes it possible to easily add micro frontend (MFE) applications on top of an Open edX platform that runs with Tutor.](https://github.com/overhangio/tutor-mfe?tab=readme-ov-file#adding-new-mfes)?

---

<div class="post-metadata">

**Author:** ![braden](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/braden/32/46_2.png) [@braden](https://discuss.openedx.org/u/braden)\
**Post date:** [January 15, 2024, 6:10pm UTC](https://discuss.openedx.org/t/unable-to-start-the-open-edx-plugins-template/12079/3 "2024-01-15T18:10:22Z")

</div>

> [@Subodh\_Poudel](#):
>
> An unexpected error occurred. Please click the button below to refresh the page.

If you see that message, you will need to check your browser JavaScript Console and/or Network tab to see the actual reason for this error. Without the specific reason, it’s hard to say.

---

<div class="post-metadata">

**Author:** ![Subodh\_Poudel](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/subodh_poudel/32/6294_2.png) [@Subodh\_Poudel](https://discuss.openedx.org/u/Subodh_Poudel)\
**Post date:** [January 16, 2024, 7:14am UTC](https://discuss.openedx.org/t/unable-to-start-the-open-edx-plugins-template/12079/4 "2024-01-16T07:14:10Z")

</div>

i looked into it, and tried to configure it as plugin, but it gave an error while building the tutor. is it correct to make plugin.py file and enable it as plugin? or Where should i write the filter hook configure code?

---

<div class="post-metadata">

**Author:** ![Subodh\_Poudel](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/subodh_poudel/32/6294_2.png) [@Subodh\_Poudel](https://discuss.openedx.org/u/Subodh_Poudel)\
**Post date:** [January 16, 2024, 7:17am UTC](https://discuss.openedx.org/t/unable-to-start-the-open-edx-plugins-template/12079/5 "2024-01-16T07:17:26Z")

</div>

It was 401 error, how do i access the open edx api without 401 error for the local development for my react/dango app?

---

<div class="post-metadata">

**Author:** ![Vitika](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/vitika/32/6622_2.png) [@Vitika](https://discuss.openedx.org/u/Vitika)\
**Post date:** [March 27, 2024, 12:21pm UTC](https://discuss.openedx.org/t/unable-to-start-the-open-edx-plugins-template/12079/6 "2024-03-27T12:21:53Z")

</div>

Were you able to resolve it? If yes, please share your solution, I am having the same issue @Subodh_Poudel

---

<div class="post-metadata">

**Author:** ![Subodh\_Poudel](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/subodh_poudel/32/6294_2.png) [@Subodh\_Poudel](https://discuss.openedx.org/u/Subodh_Poudel)\
**Post date:** [March 28, 2024, 5:25am UTC](https://discuss.openedx.org/t/unable-to-start-the-open-edx-plugins-template/12079/7 "2024-03-28T05:25:17Z")

</div>

Yes i resolved it. What is your problem? will you explain where you faced the problem.

---

<div class="post-metadata">

**Author:** ![Vitika](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/vitika/32/6622_2.png) [@Vitika](https://discuss.openedx.org/u/Vitika)\
**Post date:** [March 28, 2024, 8:38am UTC](https://discuss.openedx.org/t/unable-to-start-the-open-edx-plugins-template/12079/8 "2024-03-28T08:38:49Z")

</div>

@Subodh_Poudel I did the things which OP did in [CORS problem when working with MFE template](https://discuss.openedx.org/t/cors-problem-when-working-with-mfe-template/12093) to run the frontend outside the docker (creating and enabling a tutor plugin to allow localhost:8080), but getting the error msg (An unexpected error occurred. Please click the button below to refresh the page.) and when checking in the network tab, it’s 401 for [http://local.edly.io/login\_refresh](http://local.edly.io/login_refresh) endpoint.

---

<div class="post-metadata">

**Author:** ![Subodh\_Poudel](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/subodh_poudel/32/6294_2.png) [@Subodh\_Poudel](https://discuss.openedx.org/u/Subodh_Poudel)\
**Post date:** [March 28, 2024, 9:28am UTC](https://discuss.openedx.org/t/unable-to-start-the-open-edx-plugins-template/12079/9 "2024-03-28T09:28:41Z")

</div>

You need to add the authentication header while fetching the data. You need to use getHttpClient() for header.

---

<div class="post-metadata">

**Author:** ![Vitika](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/vitika/32/6622_2.png) [@Vitika](https://discuss.openedx.org/u/Vitika)\
**Post date:** [March 28, 2024, 9:55am UTC](https://discuss.openedx.org/t/unable-to-start-the-open-edx-plugins-template/12079/10 "2024-03-28T09:55:36Z")

</div>

@Subodh_Poudel Thanks for the reply, though I am not fetching any data. When opening the MFE, it’s sending a POST request to /login\_refresh and that is giving 401.

I have the access token in cookes of MFE host as edx-jwt-cookie-header-payload, and I guess the MFE should be using that
