How to solve rasa.utils.endpoints.ClientResponseError?

I am getting

rasa.utils.endpoints.ClientResponseError: Requested URL /webhook not found


action_endpoint: url: “http://localhost:5005/webhook

script.js from frontend file:

const rasa_server_url = “http://localhost:5005/webhooks/rest/webhook”;

What’s the issue?

@mangesh Which front end?

@nik202 front-end is in django I am not sure if it has some name, this is initial lines of script.js

@mangesh Django running on which port or host? Do you have index.html?

Yes, I have index.html. and I’m running sudo docker-compose up for running rasa and just clicking on index.html to open it. I didn’t initiate django server

@mangesh Do you have Image of Django in docker compose and port expose? Did you seen that rasa, Rasa SDK and Django server is running? Please even share index.html.Further, do you have

@mangesh It not using Docker-compose, but still you can find some missing links from this video in this video, chatroom is used, I don’t know what you are using.

This is docker-compose.yml, I don’t think it has a django-image.

should I do something related to django?

actually, i did not start this project, so the sender sent me frontend-files separately which had html, css and javascript only and i’m running index.html from there.

This is my index.html (css and js are in different folders):

<!-- {% load static %} -->
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta content="utf-8" http-equiv="encoding" />

<link rel="stylesheet" href="">
<script src=""></script>
<script src=""></script>

<!--Import Google Icon Font-->

<link rel="preconnect" href="" />

<link rel="preconnect" href="" />

<!--Import Font Awesome Icon Font-->

<!--Import materialize.css-->

<!--Main css-->
<link rel="stylesheet" type="text/css" href='css/style.css'/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
  <!--chatbot widget -->
  <div class="widget">
    <div class="chat_header">
      <!--Add the name of the bot here -->
      <span class="chat_header_title">Bot</span>
      <span class="dropdown-trigger" href="#" data-target="dropdown1">
        <i class="material-icons"> more_vert </i>

      <!-- Dropdown menu-->
      <ul id="dropdown1" class="dropdown-content">
        <li><a href="#" id="clear">Clear</a></li>
        <li><a href="#" id="restart">Restart</a></li>
        <li><a href="#" id="close">Close</a></li>

    <div class="chatstop" id="chatstop">
      <div class=".col-xs-6 .col-md-10 powered_by">
          <a href="">
            <b>Powered By Guidona</b>
          <img class="company_logo" src="img/Company_Logo_96x96.jpeg" />

    <!--Chatbot contents goes here -->
    <div class="chats" id="chats">
      <div class="clearfix"></div>

    <!--keypad for user to type the message -->
    <div class="keypad">
        placeholder="Type a message..."
      <div id="sendButton">
        <i class="fa fa-paper-plane" aria-hidden="true"></i>

  <!--bot profile-->
  <div class="profile_div" id="profile_div">
    <img class="imgProfile" src="img/icon_WomenLawyer.png"/>

  <!-- Bot pop-up intro -->

<!--JavaScript at end of body for optimized loading-->
<script src=""></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<!--Main Script -->
<script type="text/javascript" src="js/script.js"></script>

<!--Chart.js Script -->
<script type="text/javascript" src="js/chart.min.js"></script>

@mangesh change

action_endpoint: url: “http://localhost:5005/webhook”

action_endpoint: url: “http://rasa-actions:5005/webhook”


actually, i used that video once to seperately start django servers and run chatbot but still it was getting into same errors

@mangesh you are using Jitasesh G repo?

okay, i’ll try this

I am not sure what is that so maybe no :confused:

@mangesh are you sure, you mention the command in right format in docker-compose? I would encourage, first see some docker-compose files of rasa and try run basic chatbot using shell. I can see error in command syntax.

@mangesh In your docker compose, why you used same image name? guiding-bot:latest it will be the container name and how you will differentiate later? check docker ps

@mangesh How you will manage the requirements if you are using some external packages or library? for that you also need requirement.txt, see that also. Sample Example:

    version: "3.0"  
        image: rasa/rasa:2.6.3-full  
          - 5005:5005  
          - ./:/app  
          - run  
          - -m  
          - models   
          - --enable-api  
          - --cors   
          - "*"  
          - --debug   
        image: rasa/rasa_core_sdk:latest  
          - 5055:5055  
          - ./actions:/app/actions  
         - rasa  
         - run  
         - actions

is there some specific template for docker-compose.yml for rasa? Is there some immediate corrections you can suggest that I should be making or the whole file is wrongly created?

@mangesh I already send you the file, and I would encourage to use Rasa-Webchat (Botfront) else later chatbot will give you a nightmare when you deploy on Website.

@mangesh Fix the docker-compose file, see some generic rasa files, it will help you. I know you working on Ubuntu.Right. I guess this much help is fine? Good Luck!

Thank you so much for your guidance @nik202 . I think I have the approach now. Earlier, I was Confused.

@mangesh Good Luck.

Tip: Try see docker image of Wordpress and Integration Rasa Webchat on Wordpress on youtube :wink: You gonna rock.

1 Like