Browser error saving doctype in developer mode

Hello Frappe Community,

I am encountering an issue while working on a custom app in Developer Mode, and I would greatly appreciate any help.

Forgive me, I am super new to Frappe and I’m sure this is a simple issue.

Environment Details:

  • Frappe Bench Version: 5.23.0
  • Frappe Framework Version: 15.51.0
  • Python Version: 3.12.3
  • OS: Ubuntu 24.04
  • Browser: 131.0.6778.205

Issue:

Whenever I try to save a field or create a new DocType in Developer Mode, I hear a “bong” error sound. The same issue occurs when editing the DocType. However, the action appears to succeed after refreshing the page. Whatever I intended to save did in fact save. No error output appears in the Frappe server logs (tail -f ~/frappe-bench/logs/web.log).

The browser console reports the following error:

SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
    at JSON.parse (<anonymous>)
    at frappe.request.report_error (request.js:528:18)
    at 500 (request.js:224:20)
    at Object.<anonymous> (request.js:356:6)

Additionally:

  • Chrome’s network tab doesnt show any failed requests or responses
  • The issue persists even after ensuring correct permissions (chmod -R 775 ~/frappe-bench and chown -R frappe:frappe ~/frappe-bench).

Any guidance would be greatly appreciated!

Thank you in advance!!!

Hi @bm216:

Tried to restart your bench?