# Rasa server is up and running but I get a "Method POST not allowed for URL" when making a post request

**URL:** <https://community.okteto.com/t/rasa-server-is-up-and-running-but-i-get-a-method-post-not-allowed-for-url-when-making-a-post-request/334>\
**Category:** Help\
**Created:** [November 10, 2022, 7:02pm UTC](https://community.okteto.com/t/rasa-server-is-up-and-running-but-i-get-a-method-post-not-allowed-for-url-when-making-a-post-request/334 "2022-11-10T19:02:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Canta](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@Canta](https://community.okteto.com/u/Canta)\
**Post date:** [November 10, 2022, 7:02pm UTC](https://community.okteto.com/t/rasa-server-is-up-and-running-but-i-get-a-method-post-not-allowed-for-url-when-making-a-post-request/334/1 "2022-11-10T19:02:54Z")

</div>

Hi all, I’m trying to deploy my RASA chatbot with Docker and so far it looks like it is up and running.  
However, when I make a POST request with Postman to the rasa-server endpoint I get this error “Method POST not allowed for URL”  
The post I make looks like this:

```auto
{
  "sender": "test_user",
  "message": "Hi there!"
}

```

Also when I try to access it on my website I don’t get a response.

I don’t know whether it helps but I also provide my docker-compose.yml for reference:

```auto
version: '3.7'
services:

  mongodb:
    image: mongo:latest
    container_name: mongodb
    environment:
      MONGO_INITDB_ROOT_USERNAME: ***
      MONGO_INITDB_ROOT_PASSWORD: ***
    ports:
      - "27017:27017"
    command: mongod
    healthcheck:
      test: echo 'db.runCommand("ping").ok' | mongo mongodb:27017/test --quiet
      interval: 10s
      timeout: 10s
      retries: 5
      start_period: 40s
    
  rasa-server:
    image: rasa-bot:latest
    working_dir: /app
    build: "./"
    command: bash -c "rm -rf models/* && rasa train && rasa run --enable-api --cors \"*\" -p 5006 --debug"
    ports:
    - '5006:5006'
    public: true
    networks:
    - all
    # depends_on:
    # - action-server
    environment:
      MONGO_DATABASE_URL: ***
      MONGO_ROOT_USERNAME: ***
      MONGO_ROOT_PASSWORD: ***

 

  rasa-actions-server:
    image: rasa-bot:latest
    working_dir: /app
    build: "./"
    command: ["rasa", "run", "actions"]
    ports:
    - '5055:5055'
    networks:
    - all

networks:
  all:
    driver: bridge
    driver_opts:
      com.docker.network.enable_ipv6: "true"

```

Hope someone can help me with that! Many thanks in advance! 🙂

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [November 15, 2022, 1:07am UTC](https://community.okteto.com/t/rasa-server-is-up-and-running-but-i-get-a-method-post-not-allowed-for-url-when-making-a-post-request/334/2 "2022-11-15T01:07:13Z")

</div>

> [@Canta](#):
>
> Method POST not allowed for URL

I’m not an expert on RASA, but that sounds like you might be either using the wrong URL, or that you need to enable the POST handler on the API you are calling. Could you link to your repo or the tutorial you are following?

---

<div class="post-metadata">

**Author:** ![Canta](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@Canta](https://community.okteto.com/u/Canta)\
**Post date:** [November 17, 2022, 5:43pm UTC](https://community.okteto.com/t/rasa-server-is-up-and-running-but-i-get-a-method-post-not-allowed-for-url-when-making-a-post-request/334/3 "2022-11-17T17:43:08Z")

</div>

Thank you, solved it! 🙂

---

<div class="post-metadata">

**Author:** ![luisarmandom](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/luisarmandom/32/222_2.png) [@luisarmandom](https://community.okteto.com/u/luisarmandom)\
**Post date:** [November 23, 2022, 4:27pm UTC](https://community.okteto.com/t/rasa-server-is-up-and-running-but-i-get-a-method-post-not-allowed-for-url-when-making-a-post-request/334/4 "2022-11-23T16:27:16Z")

</div>

sorry to barge in but would you be able to chat a bit? I’m struggling with running a rasa server with issues in my rasa-actions here: [Not sure what to make of this error](https://community.okteto.com/t/not-sure-what-to-make-of-this-error/371) and I can’t find any good documentation about it and I’m new to docker.
