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/ 500
send @ jquery.min.js:4
ajax @ jquery.min.js:4 @ request.js:218 @ request.js:91 @ 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/", line 60, in application
    response = frappe.api.handle()
  File "/home/***/frappe-bench/apps/frappe/frappe/", line 55, in handle
    return frappe.handler.handle()
  File "/home/***/frappe-bench/apps/frappe/frappe/", line 21, in handle
    data = execute_cmd(cmd)
  File "/home/***/frappe-bench/apps/frappe/frappe/", line 56, in execute_cmd
    return, **frappe.form_dict)
  File "/home/***/frappe-bench/apps/frappe/frappe/", line 1036, in call
    return fn(*args, **newargs)
  File "/home/***/frappe-bench/apps/frappe/frappe/chat/doctype/chat_message/", line 151, in seen
    resp = dict(message = message, data = dict(seen = json.loads(mess._seen)))
  File "/usr/lib/python3.5/json/", line 312, in loads
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.