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

1 Like

@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.

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