chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

ConnectionRefusedError: You need to configure at least an on_chat_start or an on_message callback

Open dpwanjala opened this issue 2 years ago • 13 comments
trafficstars

Is it just me or is anyone else getting ConnectionRefusedError: You need to configure at least an on_chat_start or an on_message callback with watch-mode enabled. To reproduce. -run any of the examples with -w enabled -edit any file and save. *** app reload and shows the error, in the UI, the input box is now disabled and one can't input anything after this error occurs.

Note. I have both on_chat_start and on_message defined and the apps boots up correctly on first run. Error only occurs once i edit something and it reloads. Thereby I am unable to take advantage of hot-reloading, resorting to painfully restarting the server with any small changes.

ENVIRONMENT -I am running chainlit in a python environment with python Python 3.10.6 in WSL -chainlit version = 0.7.40

dpwanjala avatar Oct 29 '23 03:10 dpwanjala