title: Chat Bot not working on my web application
body: <p>I am trying to build a chatbot using Microsoft Bot Framework. I am new to this. 
  Currently I was able to built a standalone chat successfully. However, while trying to embed my chat in my application, it throws a 500 Internal Server. (PS: currently running my application in localhost)</p>
  
  <p>This is all what I have done till now(I believe I may hay have missed some steps):</p>
  
  <ol>
  <li>Registered the app with /api/messages and https endpoint.</li>
  <li>Added the Direct Link Channel (The Web Chat was already there).</li>
  <li>Embeded the Web Chat in my html with Web Chat secret key(not the tokens).</li>
  <li>Then added the hello world chat bot in server.js that connects with the localhost as well. <a href="https://docs.botframework.com/en-us/node/builder/overview/#navtitle" rel="nofollow noreferrer">Hello World Code</a></li>
  <li>Finally run the code.</li>
  </ol>
  
  <p>I could access my application from local host and also see the chat control interface shown in front end. However when I type something it throws 500 Internal Server Error.</p>
  
  <p>Please let me know what I am missing out. </p>
  
  <p>PS: application in MEAN stack</p>