AttributeError: 'Sanic' object has no attribute 'auth' ERROR sanic.root - Exception occurred while handling uri: 'http://localhost:5002/icons/favicon.ico'

i am facing issue while running “Rasa x” Command on local mode

Rasa Version : 2.8.2 Rasa SDK Version : 2.8.1 Rasa X Version : 0.42.0

i tried so many combinations of different differnt versions but still face the same error

My Rasa shell is working but only face issue while running “Rasa x” Command on local

Error : AttributeError: ‘Sanic’ object has no attribute 'auth’ 2021-08-17 11:15:24 ERROR sanic.root - Exception occurred while handling uri: 'http://localhost:5002/icons/favicon.ico

2 Likes

@manishsonawane1998 Hi,

Solution 1: Install this

pip install sanic-jwt==1.6.0

Or

Solution 2:

Downgrade Rasa to rasa==2.8.1 and then downgrade rasa-x to 0.39.3

check rasa version rasa --version its install or not

You will see some error : ImportError: cannot import name ‘RowProxy’ from ‘sqlalchemy.engine’ Install

pip install SQLAlchemy==1.3.22 should fix it

If sanic related error: pip install sanic-jwt==1.6.0

delete .db if is showing alembic issue.

Good luck! I hope this will solve your issue.

1 Like

Hello @nik202 ,

Thanks, Solution 1 works for me, Rasa x is working now

@manishsonawane1998 great. can you please close this thread with the solution for others.

yes

@manishsonawane1998 Thanks, can you please share rasa --version, I just want to update my knowledge, on which combination now Rasa-X is working properly.

@nik202 , yes currently am using these combination

Rasa Version : 2.8.2

Rasa SDK Version : 2.8.1

Rasa X Version : 0.42.0

Python Version : 3.8.10

@manishsonawane1998 Are you sure, everything is working and you able to chat with bot in web browser?

yes , everything is working

@manishsonawane1998 Thanks mate and good luck for your project.

Yes, thanks @nik202

I actually sign up just to thank you. got same error and your solution worked for me.

Thanks a lot.

@mhs123m great :smiley: this message made my weekend. Happy to help!

1 Like

Hi am still getting error after running both the commands. Following is the error

TypeError: expected string or bytes-like object 2023-04-19 12:56:27 ERROR sanic.error - File not found: path=/home/amritraj/venv/lib/python3.6/site-packages/rasax/community/interface/icons, relative_url=/favicon.ico Traceback (most recent call last): File “/home/amritraj/venv/lib/python3.6/site-packages/sanic/static.py”, line 94, in _static_request_handler content_type or guess_type(file_path)[0] or “text/plain” File “/usr/lib/python3.6/mimetypes.py”, line 291, in guess_type return _db.guess_type(url, strict) File “/usr/lib/python3.6/mimetypes.py”, line 116, in guess_type scheme, url = urllib.parse.splittype(url) File “/usr/lib/python3.6/urllib/parse.py”, line 989, in splittype match = _typeprog.match(url) TypeError: expected string or bytes-like object