chat icon indicating copy to clipboard operation
chat copied to clipboard

Website Chatting for existing users throws an error

Open djpalshikar opened this issue 2 years ago • 0 comments

While starting a website chat if the user is an existing website user with Frappe, the chat throws up an error.

Traceback (most recent call last): File "apps/frappe/frappe/app.py", line 66, in application response = frappe.handler.handle() File "apps/frappe/frappe/handler.py", line 38, in handle data = execute_cmd(cmd) File "apps/frappe/frappe/handler.py", line 76, in execute_cmd return frappe.call(method, **frappe.form_dict) File "apps/frappe/frappe/__init__.py", line 1457, in call return fn(*args, **newargs) File "env/lib/python3.8/site-packages/chat/api/message.py", line 60, in get_all if not is_user_allowed_in_room(room, email): File "env/lib/python3.8/site-packages/chat/utils/__init__.py", line 190, in is_user_allowed_in_room if frappe.session.user == "Guest" and room_detail.guest != email: AttributeError: 'NoneType' object has no attribute 'guest' Screenshot from 2022-08-29 17-44-11 Screenshot from 2022-08-29 17-44-40

djpalshikar avatar Aug 29 '22 12:08 djpalshikar