# Issue with rasa and react, bot response not returned in chat

**URL:** <https://forum.rasa.com/t/issue-with-rasa-and-react-bot-response-not-returned-in-chat/20682>\
**Category:** Rasa Open Source\
**Created:** [October 31, 2019, 7:13am UTC](https://forum.rasa.com/t/issue-with-rasa-and-react-bot-response-not-returned-in-chat/20682 "2019-10-31T07:13:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sameera](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sameera/32/6488_2.png) [@sameera](https://forum.rasa.com/u/sameera)\
**Post date:** [October 31, 2019, 7:13am UTC](https://forum.rasa.com/t/issue-with-rasa-and-react-bot-response-not-returned-in-chat/20682/1 "2019-10-31T07:13:02Z")

</div>

I am running two servers “python -m http.server 8000” and “python -m rasa run --m ./models --endpoints endpoints.yml --port 5005 -vv --enable-api”. When I open “localhost:8000” the chat opens but when i type a message, there is no bot response. Below I have given a screenshot of the error, can someone help me with this.

**index.html** : this file is present in a seperate folder outside of the rasa chatbot folder

```auto
<!DOCTYPE html>
<html lang="en">
  <head>
    <link rel="stylesheet" href="https://npm-scalableminds.s3.eu-central-1.amazonaws.com/@scalableminds/chatroom@master/dist/Chatroom.css" />
  </head>
  <body>
    <div class="chat-container"></div>
  
    <script src="https://npm-scalableminds.s3.eu-central-1.amazonaws.com/@scalableminds/chatroom@master/dist/Chatroom.js"/></script>
    <script type="text/javascript">
      var chatroom = new window.Chatroom({
        host: "http://localhost:5005",
        title: "Chat with AVA",
        container: document.querySelector(".chat-container"),
        welcomeMessage: "Hi, I am AVA. How may I help you?",
        speechRecognition: "en-US",
        voiceLang: "en-US"
      });
      chatroom.openChat();
    </script>
  </body>
</html>

```

**credentials.yml**

```auto
rest:
  # you don't need to provide anything here - this channel doesn't
  # require any credentials

```

**endpoints.yml**

```auto
action_endpoint:
   url: "http://localhost:5005/webhook"

```

**error**

 ![Screenshot%20(177)](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/5/537e759d092dabad3ebf86d57f1b332efd210fa9.png)

**frontend**

 ![Screenshot%20(178)](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/d/df87f39c9ed4f8fca3290f79f0d1e2071c2bfcc1.png)

---

<div class="post-metadata">

**Author:** ![sameera](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sameera/32/6488_2.png) [@sameera](https://forum.rasa.com/u/sameera)\
**Post date:** [October 31, 2019, 12:37pm UTC](https://forum.rasa.com/t/issue-with-rasa-and-react-bot-response-not-returned-in-chat/20682/2 "2019-10-31T12:37:38Z")

</div>

Got it fixed , had to add ‘cors’ while running the server. ✌

---

<div class="post-metadata">

**Author:** ![subbu\_y80](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/subbu_y80/32/11872_2.png) [@subbu\_y80](https://forum.rasa.com/u/subbu_y80)\
**Post date:** [December 30, 2020, 6:18am UTC](https://forum.rasa.com/t/issue-with-rasa-and-react-bot-response-not-returned-in-chat/20682/4 "2020-12-30T06:18:05Z")

</div>

Hi Can you please share steps to execute this . even I am also facing same issue here.
