Hello there,
when trying to save my full Terms and Conditions ERPNext crashes.
JavaScript Console says:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
desk:1 Uncaught SyntaxError: Unexpected token <
and
Uncaught SyntaxError: Unexpected token <
Cutting off a few lines of text the Terms and Conditions are saved properly. I don’t know where to start to debug this.
May anyone reproduce this?
Thank you.
Edit: I got a trace after waiting a few seconds:
Traceback (innermost last):
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/app.py", line 69, in application
response = frappe.handler.handle()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py", line 77, in handle
execute_cmd(cmd)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py", line 94, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/__init__.py", line 788, in call
return fn(*args, **newargs)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 18, in savedocs
doc.save()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 251, in save
self.db_update()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/base_document.py", line 307, in db_update
), d.values() + [d.get("name")])
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/database.py", line 135, in sql
self._cursor.execute(query, values)
File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
OperationalError: (2006, 'MySQL server has gone away')