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

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:

{
  "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:

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! :slight_smile:

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?

Thank you, solved it! :slight_smile:

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 and I can’t find any good documentation about it and I’m new to docker.