# Remote Custom Action Server never responds

**URL:** <https://forum.rasa.com/t/remote-custom-action-server-never-responds/48350>\
**Category:** Rasa Open Source\
**Created:** [October 9, 2021, 8:28am UTC](https://forum.rasa.com/t/remote-custom-action-server-never-responds/48350 "2021-10-09T08:28:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![player9](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@player9](https://forum.rasa.com/u/player9)\
**Post date:** [October 9, 2021, 8:28am UTC](https://forum.rasa.com/t/remote-custom-action-server-never-responds/48350/1 "2021-10-09T08:28:25Z")

</div>

I have been trying to deploy my rasa bot to a Google Cloud, but while I generally don’t have trouble getting the core bot uploaded. And even action server runs locally, I cannot ever get my custom action server to respond when it’s uploaded (I’ve also tried on Heroku as well with the same problem).

**Action Server Running Locally**

 ![Screen Shot 2021-10-09 at 10.01.47 AM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/0/4/04d6d1a4c9ddf28d6d46bd2396965b2dccc4872a.png)

**Action Server Running in Cloud** Just hangs

 ![Screen Shot 2021-10-09 at 10.05.23 AM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/3/6/36e8d905e462f8138de1aea5184a41a6ed116cc4.png)

**My endpoints.yml**

```auto
# This file contains the different endpoints your bot can use.

# Server where the models are pulled from.
# https://rasa.com/docs/rasa/model-storage#fetching-models-from-a-server

#models:
# url: http://my-server.com/models/default_core@latest
# wait_time_between_pulls: 10 # [optional](default: 100)

# Server which runs your custom actions.
# https://rasa.com/docs/rasa/custom-actions

action_endpoint:
  url: "http://localhost:5055/webhook"
  

```

**My Dockerfile**

```auto
# Extend the official Rasa SDK image
FROM rasa/rasa-sdk:latest

# Use subdirectory as working directory
WORKDIR /app

# Copy any additional custom requirements
COPY actions/requirements-actions.txt ./

COPY weather.py ./
COPY airtable.py ./
# Change back to root user to install dependencies
USER root

# Install extra requirements for actions code, if necessary (otherwise comment this out)
RUN pip install -r requirements-actions.txt

# Copy actions folder to working directory
COPY ./actions /app/actions

# By best practices, don't run the code with root user
USER 1001

CMD $(echo "rasa run actions -p $PORT --debug" | sed 's/=//')

```

I’ve tried creating a custom action server in nodeJS [from `[Lykos94's rasa-node-action-server git](https://github.com/Lykos94/rasa-node-action-server)`]

```auto

const { RasaNodeActionServer, RasaActionEvent } = require("rasa-node-action-server");

const rnas = new RasaNodeActionServer();

rnas.define("action_hello_world", (action, res) => {
  res
    .addEvent(RasaActionEvent.bot("Hello world, from your action server"))
    .send();
});

rnas.define("action_weather_test", async (action, res) => {
  var weatherdata;
  const { zipcode } = action.getSlots();
  try{
    weatherdata = await axios.get(`https://api.openweathermap.org/data/2.5/weather?q=${zipcode}&units=imperial&appid=${process.env.WEATHER_KEY}`);
    console.log(weatherdata);
  
  } catch (err){ console.error(err);}
  
  res
    .addEvent(RasaActionEvent.bot("Here's the weather for "+zipcode+": "+weatherdata['data']['weather'][0]['description']+ " with a temperature of "+((weatherdata['data']['main']['temp']).toFixed(1)+ "F")))
    .send();
    
    
});

rnas.define("action_test_airtable", (action, res) => {
  res
    .addEvent(RasaActionEvent.bot("Hello world, from your action server"))
    .send();
});

rnas.start();

```

But whenever I submit a POST to the action server (on port 5055 or 80), I never get a response. I don’t know what I’m doing wrong as I’ve tried using the rasa sdk on both heroku and google cloud, and even developing a custom action server in node and not a single one ever responds. What am I missing?

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [October 9, 2021, 12:55pm UTC](https://forum.rasa.com/t/remote-custom-action-server-never-responds/48350/2 "2021-10-09T12:55:56Z")

</div>

Hello and welcome to the forum!

Are you using Docker or Helm for deployment?

---

<div class="post-metadata">

**Author:** ![player9](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@player9](https://forum.rasa.com/u/player9)\
**Post date:** [October 9, 2021, 5:03pm UTC](https://forum.rasa.com/t/remote-custom-action-server-never-responds/48350/3 "2021-10-09T17:03:18Z")

</div>

Docker. But I find it very confusing.

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [October 9, 2021, 6:03pm UTC](https://forum.rasa.com/t/remote-custom-action-server-never-responds/48350/4 "2021-10-09T18:03:08Z")

</div>

> [@player9](#):
>
> ![Screen Shot 2021-10-09 at 10.05.23 AM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/3/6/36e8d905e462f8138de1aea5184a41a6ed116cc4.png)
> 
> Screen Shot 2021-10-09 at 10.05.23 AM1972×970 90.5 KB

Oh I just noticed!

In your picture here, there is a `/` before `:5055` which should not be there in the POST URL.

If it doesn’t work, maybe try without mentioning the port (I have used Quick/Helm installation, for which you don’t mention the port).

---

<div class="post-metadata">

**Author:** ![player9](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@player9](https://forum.rasa.com/u/player9)\
**Post date:** [October 9, 2021, 10:30pm UTC](https://forum.rasa.com/t/remote-custom-action-server-never-responds/48350/5 "2021-10-09T22:30:58Z")

</div>

I’ve removed the port and the ‘/’ but that doesn’t resolve the problem. It’s as though the server is listening to the right port now, but it won’t execute the POST

 ![Screen Shot 2021-10-10 at 12.30.18 AM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/4/a/4a7d39a0831a395af3875dcc4b0e74aa4880ed99.png)

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [October 10, 2021, 8:27am UTC](https://forum.rasa.com/t/remote-custom-action-server-never-responds/48350/6 "2021-10-10T08:27:45Z")

</div>

Does it work if you try to hit the following endpoint?

```auto
POST http://<whatever>/webhooks/rest/webhook

{
    "sender": "Postman",
    "message": "Hello there"
}

```

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 10, 2021, 2:29pm UTC](https://forum.rasa.com/t/remote-custom-action-server-never-responds/48350/7 "2021-10-10T14:29:11Z")

</div>

@player9 are you using only dockerfile or you using docker-compose as well? can you share all your docker file for rasa and rasa-sdk with endpoints.yml ?
