Closed GraphGrailAi closed 5 years ago
Looks like you are on the right track. If you can see traffics logs in the Rasa Core output (e.g. GET /webhooks/chatroom/conversations/.../log?
) then everything should be connected together correctly.
That being said, there could very well be a bug in connecting to the latest Rasa Core version. (Haven't try that one yet.) The Rasa APIs change very rapidly.
Have you checked the output of your browser's dev tools? Especially the Network
tab is interesting as it shows the requests from the Chat frontend. The log
requests are polling for new information from the server. What happens when you write something in the Chat? (say
request)
I can do this today, could you suggest version with 100% success - i will reinstall fast ans test it
Here screens of web inteface with network tab and terminal, say
hello
@GraphGrailAi All requests fail with a 404 error. Looks like something is not connected correctly. What does your credentials.yaml
look like? I suspect this is the problem. Make sure include the channel adapter for the Chatroom (amongst all your other channels. E.g. something like this:
socketio:
user_message_evt: user_uttered
bot_message_evt: bot_uttered
session_persistence: true
rest:
# pass
<path_to_code>.bot_server_channel.BotServerInputChannel:
# pass
I just tried the chatroom with a new bot project running on Rasa Core 0.13.7
without any problems.
I am also facing the same issue. I tried using
rasa-core==0.11.1
rasa-core-sdk==0.11.0
rasa-nlu==0.13.2
My credentials.yml file is (I created a folder rasa_utils and posted the file in the github there)
rasa_utils.bot_server_channel.BotServerInputChannel:
#pass
i am running the server using this command.
python -m rasa_core.run --enable_api -d models/dialogue -u models/current/nlu --port 5005 --endpoints endpoints.yml --credentials credentials.yml --cors "*"
Kindly help what i am missing.
Also do i have to change the port to 5005 from 5002 in inputchannel
def __init__(
self, agent=None, preprocessor=None, port=5002, message_store=FileMessageStore()
)
@hnithyanandam @GraphGrailAi Please provide a link to a GitHub repository of the code for debugging.
Also do i have to change the port to 5005 from 5002 in inputchannel I don't think you have to do this. This is old code (that we probably should delete). The port should be the same as your Rasa Core configuration / port. (e.g. 5005)
@hotzenklotz Please find the code https://github.com/hnithyanandam/samplerasabot
I changed the port to 5005 and tried. Still not working
@hotzenklotz Cool! I was able to launch it! But this only works with this repo: https://github.com/RasaHQ/starter-pack-rasa-stack (i tried with rasa-demo where i was unable to install https://github.com/facebook/duckling and rasa-nlu repo, where problems with no domain.yml and other files)
Also, to launch server from terminal i changed a path to models:
joo@joo-tf:~/Документы/LocalRepository/starter-pack-rasa-stack$ python -m rasa_core.run -d models/current/dialogue -u models/current/nlu --port 5005 --credentials credentials.yml
Only after that chat widget start responding with 200 code
I still curious should port be the same in terminal --port 5005
and in endpoints.yml
:
action_endpoint:
url: "http://localhost:5055/webhook"
i close
I am still facing the same issue..Rasa server continuously getting 404 for conversation logs. Is it because of using older version?
@hnithyanandam I use Rasa newest version from https://rasa.com/docs/core/installation/#latest-most-recent-github My experience 404 may be because different port in files endpoints.yml and when calling from command line.
I am trying to get rasa-demo to work with chatroom - but no luck. I have downloaded repo https://github.com/RasaHQ/rasa-demo, train was successful with no errors, models created. Tried both https://github.com/scalableminds/chatroom and https://github.com/mrbot-ai/rasa-webchat
What done: 1) Created new html file with following code as suggested in docs https://github.com/scalableminds/chatroom:
2) Created a credentials file (credentials.yml) inside rasa-demo-master folder of repo with the following content: (refer to https://rasa.com/docs/core/connectors/#socketio-connector and https://stackoverflow.com/questions/53187184/rasa-webchat-integration)
3) Run
python -m rasa_core.run -d models/dialogue -u models/nlu/current --port 5005 --credentials credentials.yml
I got output in console: (Ubuntu 19)
When i navigate to html file created on the first step I can see that server start output very second like 127.0.0.1 - - [2019-05-19 22:27:53] "GET /webhooks/chatroom/conversations/581bbacb-9e64-4540-ad8d-0e295218831d/log?nocache=1558294072984 HTTP/1.1" 404 342 0.001709
I assume i am on the right path, but chatroom never answer to my posts from browser