Server Error on using Chat (v11 upgraded to v12)

Hi there,

I got this error everytime I’m trying to type on the Chat feature:

TypeError: the JSON object must be str, bytes or bytearray, not ‘NoneType’

Please advise.

Yeah, I’m getting this too. Did you figure anything out?

I can verify the issue. I setup production environment using easy install.

jquery.min.js:4 POST https://****/api/method/frappe.chat.doctype.chat_message.chat_message.seen 500
send @ jquery.min.js:4
ajax @ jquery.min.js:4
frappe.request.call @ request.js:218
frappe.call @ request.js:91
frappe.chat.message.seen @ chat.js:977
onclick @ chat.js:1997
c @ hyper.min.js:1
request.js:352 Traceback (most recent call last):
  File "/home/***/frappe-bench/apps/frappe/frappe/app.py", line 60, in application
    response = frappe.api.handle()
  File "/home/***/frappe-bench/apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "/home/***/frappe-bench/apps/frappe/frappe/handler.py", line 21, in handle
    data = execute_cmd(cmd)
  File "/home/***/frappe-bench/apps/frappe/frappe/handler.py", line 56, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/***/frappe-bench/apps/frappe/frappe/__init__.py", line 1036, in call
    return fn(*args, **newargs)
  File "/home/***/frappe-bench/apps/frappe/frappe/chat/doctype/chat_message/chat_message.py", line 151, in seen
    resp = dict(message = message, data = dict(seen = json.loads(mess._seen)))
  File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'NoneType'
1 Like

Yes, just fresh installation done, no customisation and the same JSON error happens with the chat. Can’t report It from the installation because no emails set up there yet.

Any update please ?

This may have been reported

Seems like this issue is persistent since v11. I was using v7 and its chat has no issue.
The report date 2018-12-25 is old as well. I hope some one fixes this soon.