jpwakugawa / chatbot-hogwarts

Chatbot utilizando Rasa + Docker + MongoDB
MIT License
0 stars 2 forks source link

ModuleNotFoundError: No module named 'actions.secrets' #2

Closed owos closed 2 years ago

owos commented 2 years ago

Hello, tried deploying this to Okteto but I go the following error. I also got an error deploying docker compose.

jpwakugawa commented 2 years ago

Thanks for the issue!

I'll improve the documentation about this part.

Go to bot > actions: Add a secrets.py file with your mongo cluster information.

secrets = {
    "CLUSTER": "your_cluster",
    "DB_NAME": "your_database",
    "COL_NAME": "your_collection"
}
owos commented 2 years ago

great, thank you for the update.

owos commented 1 year ago

Thank you. I'm having an issue with changing my bot server port I need to change it from 5005 to something else. You know any solution for that?

On Wed, 13 Jul 2022, 17:27 João Paulo Wakugawa, @.***> wrote:

Thanks for the issue!

I'll improve the documentation about this part.

Go to bot > actions: Add a secrets.py file with your mongo cluster information.

secrets = { "CLUSTER": "your_cluster", "DB_NAME": "your_database", "COL_NAME": "your_collection" }

— Reply to this email directly, view it on GitHub https://github.com/jpwakugawa/chatbot-hogwarts/issues/2#issuecomment-1183431558, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSFSA36GOGY7FRKINW7ZJ3VT3U57ANCNFSM53OPLYYQ . You are receiving this because you authored the thread.Message ID: @.***>

jpwakugawa commented 1 year ago

Hello, you could change the forwarded port at docker-compose ports: image Or even pass the select port as argument:

rasa run --enable-api --cors "*" -p 5010
owos commented 1 year ago

Hi, I've been able to fix this for a while now. My current issue is getting the chat widget to show up on the main page. it never comes up.

jpwakugawa commented 1 year ago

Are you getting any errors? Changing the socketUrl like I did here should be enough: image

owos commented 1 year ago

So the issue is that I forked your repo and deployed it exactly on okteto and the chat widget did not pop up, I removed the secrets as I do not have any secrets. here's the link of the outceome: https://web-owos.cloud.okteto.net/

jpwakugawa commented 1 year ago

I have just redeployed my repo and it worked normally, make sure you are using the correct endpoint at socketUrl, in your case it should be something like bot-owos.cloud.okteto.net and deploy using this command:

 okteto deploy --build

Also, if you are going to use rasa-sdk, don't forget to change the endpoint: image If this doesn't work, show me the logs from your pod at Okteto. image