RasaX Failed to establish a new connection

Hello I am trying to deploy my assistant in rasa x local mode. First I made a rasa upgrade, which took a lot, and I ended up doing: pip install rasa --upgrade --use-deprecated=legacy-resolver

It seems everything went ok

Rasa Version : 2.8.3 Minimum Compatible Version: 2.8.0 Rasa SDK Version : 2.8.1 Rasa X Version : 0.33.2 Python Version : 3.8.6 Operating System : macOS-10.15.7-x86_64-i386-64bit Python Path : /Users/Ruquita/Pincha/Rasa/venv3.8_Rasa2.0.x/bin/python

Then when I do rasa x and the web browser gives a: Request failed with status code 500

this is what the terminal shows:

(venv3.8_Rasa2.0.x) ruquita@Rucu Tramites_Gabi_agosto2021 % rasa x Starting Rasa X in local mode… :rocket: An error occured when trying to send the telemetry event: HTTPSConnectionPool(host=‘api.segment.io’, port=443): Max retries exceeded with url: /v1/track (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7fbfc0b07d90>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known’)) An error occured when trying to send the telemetry event: HTTPSConnectionPool(host=‘api.segment.io’, port=443): Max retries exceeded with url: /v1/track (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7fbfc0b07c10>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known’)) [2021-08-30 08:02:20 -0400] [24300] [INFO] Goin’ Fast @ http://0.0.0.0:5002 2021-08-30 08:02:20 INFO sanic.root - Goin’ Fast @ http://0.0.0.0:5002

The server is running at http://localhost:5002/login?username=me&password=4Jq0QfDI1R6S

[2021-08-30 08:02:22 -0400] [24300] [INFO] Starting worker [24300] 2021-08-30 08:02:22 INFO sanic.root - Starting worker [24300] [2021-08-30 08:02:24 -0400] [24300] [ERROR] Exception occurred while handling uri: ‘http://localhost:5002/api/auth’ Traceback (most recent call last): File “/Users/Ruquita/Pincha/Rasa/venv3.8_Rasa2.0.x/lib/python3.8/site-packages/rasa/cli/x.py”, line 496, in run_locally local.main( TypeError: main() got an unexpected keyword argument ‘domain_path’

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/Users/Ruquita/Pincha/Rasa/venv3.8_Rasa2.0.x/lib/python3.8/site-packages/sanic/app.py”, line 938, in handle_request response = await response File “/Users/Ruquita/Pincha/Rasa/venv3.8_Rasa2.0.x/lib/python3.8/site-packages/sanic_jwt/endpoints.py”, line 36, in post access_token, output = await self.responses.get_access_token_output( File “/Users/Ruquita/Pincha/Rasa/venv3.8_Rasa2.0.x/lib/python3.8/site-packages/sanic_jwt/responses.py”, line 19, in get_access_token_output access_token = await instance.auth.generate_access_token(user) File “/Users/Ruquita/Pincha/Rasa/venv3.8_Rasa2.0.x/lib/python3.8/site-packages/sanic_jwt/authentication.py”, line 477, in generate_access_token return jwt.encode(payload, secret, algorithm=algorithm).decode(“utf-8”) AttributeError: ‘str’ object has no attribute ‘decode’ 2021-08-30 08:02:24 ERROR sanic.root - Exception occurred while handling uri: ‘http://localhost:5002/api/auth’ Traceback (most recent call last): File “/Users/Ruquita/Pincha/Rasa/venv3.8_Rasa2.0.x/lib/python3.8/site-packages/rasa/cli/x.py”, line 496, in run_locally local.main( TypeError: main() got an unexpected keyword argument ‘domain_path’

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/Users/Ruquita/Pincha/Rasa/venv3.8_Rasa2.0.x/lib/python3.8/site-packages/sanic/app.py”, line 938, in handle_request response = await response File “/Users/Ruquita/Pincha/Rasa/venv3.8_Rasa2.0.x/lib/python3.8/site-packages/sanic_jwt/endpoints.py”, line 36, in post access_token, output = await self.responses.get_access_token_output( File “/Users/Ruquita/Pincha/Rasa/venv3.8_Rasa2.0.x/lib/python3.8/site-packages/sanic_jwt/responses.py”, line 19, in get_access_token_output access_token = await instance.auth.generate_access_token(user) File “/Users/Ruquita/Pincha/Rasa/venv3.8_Rasa2.0.x/lib/python3.8/site-packages/sanic_jwt/authentication.py”, line 477, in generate_access_token return jwt.encode(payload, secret, algorithm=algorithm).decode(“utf-8”) AttributeError: ‘str’ object has no attribute ‘decode’

Heya @anarucu ! Can you please share rasa version rasa --version

OR

Install

pip install sanic-jwt==1.6.0

If you got any error do let me know please.

thx a lot @nik202, here is rasa --version output:

Rasa Version : 2.8.3

Minimum Compatible Version: 2.8.0

Rasa SDK Version : 2.8.1

Rasa X Version : 0.33.2

Python Version : 3.8.6

Operating System : macOS-10.15.7-x86_64-i386-64bit

Python Path : /Users/Ruquita/Pincha/Rasa/venv3.8_Rasa2.0.x/bin/python

This is what I got installing sanic-jwt:

@anarucu upgrade rasa x to rasa 0.39.3 please

pip install rasa-x==0.39.3 --extra-index-url https://pypi.rasa.com/simple

Thankyou again @nik202, I really appreciate it. I did what you suggested, upgrade rasa-x==0.39.3, it is taking a lot of time but is moving foward.

In parallel I created a new venv and installed rasa and rasax from scratch. the actual version in this new venv is:

I didnt get any errors or warnings during installation.

However when I try to run rasa x a get this:

Is this related whit my nludata an domain files? This same project works perfect in shell mode and in other computer with rasa x I am sorry for taking so much of your time ana

@anarucu

the above error is single error right? If yes then you on the right track :slight_smile:

install this

ImportError: cannot import name ‘RowProxy’ from ‘sqlalchemy.engine’

pip install SQLAlchemy==1.3.22

you will get again one error do share me :wink:

OR

Check this thread: Rasa X Local mode Installation Errors and warnings - #6 by nik202

Hi @nik202 yes is a single error.

And this is what I get after installing SQLAlchemy

all the best!

Please before doing anything can you change rasa version from 2.8.3 to 2.8.1


pip install rasa==2.8.1

I guess that will solve use this error.

@anarucu Hi, I hope you doing fine? I hope you solved this issue as per suggestion, if yes please close this thread with the solution or if you have issue do let us know. Thanks :slight_smile: