Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the chatbot didn't respond #3

Closed
SallemiDorsaf opened this issue Aug 13, 2019 · 7 comments
Closed

the chatbot didn't respond #3

SallemiDorsaf opened this issue Aug 13, 2019 · 7 comments

Comments

@SallemiDorsaf
Copy link

SallemiDorsaf commented Aug 13, 2019

thank you for the code it's very helpful
but my bot didn't respond
rasa =1.1.4

from rasa.core.agent import Agent
from rasa.core.channels.socketio import SocketIOInput
from rasa.core.agent import Agent
from rasa.utils.endpoints import EndpointConfig
interpreter ="models/20190809-043054/nlu"
MODEL_PATH = "models/20190809-043054/core"
action_endpoint = EndpointConfig(url="http://127.0.0.1:5055/webhook")
agent = Agent.load(MODEL_PATH, interpreter=interpreter,
action_endpoint=action_endpoint)
input_channel = SocketIOInput(
user_message_evt="user_uttered",
bot_message_evt="bot_uttered",
namespace=None
)
s = agent.handle_channels([input_channel], http_port=5500,route='/webhooks/',cors="*")

i run : rasa run actions // python bot.py // python manage.py runserver
i can tape a message but i didn't get a response can you help me to fix it thank you

@Alexmhack
Copy link
Owner

Have you checked the browser console, look for any errors there, maybe socket could not connect to rasa server.

@SallemiDorsaf
Copy link
Author

SallemiDorsaf commented Aug 14, 2019

i get this
image
image

can you help me to fix it please

@Alexmhack
Copy link
Owner

I have updated the code for django backend to allow CORS (the issue you are facing), it should work fine now, I couldn't test it due to some problems with my local machine, see if it worked for you.

run git pull to update your repo and test by running both the servers again.

@SallemiDorsaf
Copy link
Author

it didn't work i get this error
image

@Alexmhack
Copy link
Owner

Sorry for the late response but I am not getting any good workaround solution for this problem after a lot of testing, I think you should try the same thing in the google chrome browser as well for checking if it works in that browser, you can also google search this problem, and make any changes on your side and do tell me if anything worked for you,

Looking forward to see a solution.

@Alexmhack
Copy link
Owner

I think there is some problem going on with Rasa related to how sockets work, checkout here

@Alexmhack
Copy link
Owner

Hi @SallemiDorsa, For your issue, you should try installing the latest version of rasa from here and in case of detailed instructions go here.

After installing, instead of using my repo for a chat interface, use webchat, its safe, uses sockets and works fine, but the above installation is required.

In case of getting errors while installing rasa-x on windows due to httptools build error checkout this and go to Windows tab below the line, Otherwise, proceed with the instructions below to install them. on the same page.

See if it works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants