Frappe Chat issues that we face

Hi there friends,
we are facing some issues in Chat module.

  1. It is always saying “We are offline” even we set chat time from 00:00 to 23:59.
  2. 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.
    image
1 Like

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.

Thanks for reply. But schedular is already on.

Please help in regarding issues.

For issue # 2.

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

1 Like

I posted a pull request here.

1 Like

I am also working to solve issue # 1, will get back soon after.

1 Like