Hi @PKLogix , we too faced same issue with chat earlier. Check your scheduler and enable it for your site. worked for us. Hope this will resolve your problem.
If we start conversation after and fill the form it starts the chat. But if we refresh the page or open another tab this error is shown.
We found logical error in Python file here:
we made these changes:
from line 23:
is_exist = frappe.db.exists({
‘doctype’: ‘Chat Profile’,
‘token’: token,
}) to this:
profiles = frappe.get_all(‘Chat Profile’, filters={‘token’:token})
from line 28:
if not is_exist: to this:
if not profiles:
And lastly from line 31:
guest_user = frappe.get_doc(‘Chat Profile’, str(is_exist[0][0])) To this:
guest_user = frappe.get_doc(‘Chat Profile’, profiles[0][‘name’])
I will post a github issue to this and give solution there too.
Regards