RASA_SDK docker container is causing an empty response in bot

A docker container running python -m rasa_core_sdk.endpoint --actions actions --debug works.

But python -m rasa_sdk--actions actions --debug Does not.

Any ideas why this is

Mhm, this is indeed weird. Which error / logs are you getting? Also, it should be python -m rasa_sdk --actions actions --debug (notice the extra space after rasa_sdk).

Wait, you are missing old rasa_core_sdk and rasa_sdk. Please uninstall the old sdk (pip uninstall rasa_core_sdk) and then install the new sdk (pip install rasa_sdk)

The space was a typo, I typed in python -m rasa_sdk --actions actions --debug

It looks like it is a problem with cors and it is not sending any response back.

2019-11-27 21:33:30 INFO     sanic.access  - 
2019-11-27 21:36:00 DEBUG    rasa_sdk.executor  - Received request to run 'action_transfer_call'
2019-11-27 21:36:00 DEBUG    rasa_sdk.executor  - Finished running 'action_transfer_call'
2019-11-27 21:36:00 DEBUG    sanic.root  - CORS: Request to '/webhook' matches CORS resource '/*'. Using options: {'origins': [''], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': None, 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': {'/*': {'origins': ''}}, 'intercept_exceptions': True, 'always_send': True}
2019-11-27 21:36:00 INFO     sanic.access  -

@edifius it was a bug in rasa / rasa-sdk. I fixed it yesterday :slight_smile: Could you please upgrade to rasa 1.5.1 ?

@Tobias_Wochinger This is happening for me now using docker-compose up, looks like this. I have updated rasa to 1.5.1

Should I do something more?

So sorry but this upgrade did fuck up everything in my computer! had big problems with tensorflow updates, and when updated tensorflow the problems just added up. Running on windows computer.

This is happening for me now using docker-compose up, looks like this. I have updated rasa to 1.5.1

So you explicitly specified rasa:1.5.1 in your docker-compose file?

Where do I specify that in docker-compose ?

Docker compose uses Dockerfiles, you specify this in your docker file.

I’m using rasa dockerfile, what do you include in Dockerfile that is not there?

can i see the docker file?


You should build your own image with rasa 1.5.1 then change image from “rasa/rasa:latest-full” to the name of your image. So basically create a dockerfile that has the line

RUN python3 -m pip install rasa~=1.5.1 rasa_sdk~=1.5.1

Build this container, push it to a registry that you own, Google Registry, Docker, etc. Then use this image in your docker compose.