Issue with rasa-webchat webchannel - Chat widget Integration

Hi, I’ve issues with running the demo-bot with my chat widget on website. I’m not clear on configuring the Environment variables in the repository https://github.com/mrbot-ai/rasa-webchat. The bot works quite good in command line. When I connect my chat widget through sockets, it throws the exception. Following are the debug outputs,

python3 demo/main.py /home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/pykwalify/core.py:99: UnsafeLoaderWarning: The default ‘Loader’ for ‘load(stream)’ without further arguments can be unsafe. Use ‘load(stream, Loader=ruamel.yaml.Loader)’ explicitly if that is OK. Alternatively include the following in your code:

import warnings warnings.simplefilter(‘ignore’, ruamel.yaml.error.UnsafeLoaderWarning)

In most other cases you should consider using ‘safe_load(stream)’ data = yaml.load(stream) DEBUG:rasa_core.remote:Uploading model to rasa core server. WARNING:rasa_core.remote:Failed to send model upload request. No connection adapters were found for ‘localhost:5005/load’ WARNING:rasa_core.remote:Failed to send model upload request. No connection adapters were found for ‘localhost:5005/load’ WARNING:rasa_core.remote:Failed to send model upload request. No connection adapters were found for ‘localhost:5005/load’ WARNING:rasa_core.remote:Failed to send model upload request. No connection adapters were found for ‘localhost:5005/load’ WARNING:rasa_core.remote:Failed to send model upload request. No connection adapters were found for ‘localhost:5005/load’ INFO:rasa_core.remote:Starting sync listening on input channel INFO:engineio:Server initialized for gevent. INFO:engineio:dbeba80e6902482bad40d62c9ce6da39: Sending packet OPEN data {‘sid’: ‘dbeba80e6902482bad40d62c9ce6da39’, ‘upgrades’: [], ‘pingInterval’: 25000, ‘pingTimeout’: 60000} INFO:engineio:dbeba80e6902482bad40d62c9ce6da39: Sending packet MESSAGE data 0 INFO:engineio:dbeba80e6902482bad40d62c9ce6da39: Received packet MESSAGE data 2[“user_uttered”,{“message”:"/get_started",“customData”:{“userId”:“123”}}] INFO:socketio:received event “user_uttered” from dbeba80e6902482bad40d62c9ce6da39 [/] ERROR:rasa_core.remote:Failed to process message. Traceback (most recent call last): File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/rasa_core/remote.py”, line 265, in process_message response = self.core_client.parse(message.text, message.sender_id) File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/rasa_core/remote.py”, line 118, in parse headers={‘Content-Type’: ‘application/json; charset=utf-8’} File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/rasa_core/utils.py”, line 549, in request **kwargs) File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/requests/api.py”, line 58, in request return session.request(method=method, url=url, **kwargs) File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/requests/sessions.py”, line 512, in request resp = self.send(prep, **send_kwargs) File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/requests/sessions.py”, line 616, in send adapter = self.get_adapter(url=request.url) File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/requests/sessions.py”, line 707, in get_adapter raise InvalidSchema(“No connection adapters were found for ‘%s’” % url) requests.exceptions.InvalidSchema: No connection adapters were found for ‘localhost:5005/conversations/dbeba80e6902482bad40d62c9ce6da39/parse’ INFO:engineio:dbeba80e6902482bad40d62c9ce6da39: Received packet MESSAGE data 2[“user_uttered”,{“message”:“hi”,“customData”:{“userId”:“123”}}] INFO:socketio:received event “user_uttered” from dbeba80e6902482bad40d62c9ce6da39 [/] ERROR:rasa_core.remote:Failed to process message. Traceback (most recent call last): File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/rasa_core/remote.py”, line 265, in process_message response = self.core_client.parse(message.text, message.sender_id) File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/rasa_core/remote.py”, line 118, in parse headers={‘Content-Type’: ‘application/json; charset=utf-8’} File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/rasa_core/utils.py”, line 549, in request **kwargs) File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/requests/api.py”, line 58, in request return session.request(method=method, url=url, **kwargs) File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/requests/sessions.py”, line 512, in request resp = self.send(prep, **send_kwargs) File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/requests/sessions.py”, line 616, in send adapter = self.get_adapter(url=request.url) File “/home/lakshman/Lakshman/Projects/RasaChatBot/rasa/lib/python3.5/site-packages/requests/sessions.py”, line 707, in get_adapter raise InvalidSchema(“No connection adapters were found for ‘%s’” % url) requests.exceptions.InvalidSchema: No connection adapters were found for ‘localhost:5005/conversations/dbeba80e6902482bad40d62c9ce6da39/parse’

Help me with this. Thanks in advance!

can I ask which variables exactly you mean?