SyntaxError - JSON.parse - unexpected character at line 1 column 1 of the JSON data

Hello,

I am running Frappe/ERPNext on an AWS with MySQL residing in a separate RDS. I have not linked any domain to it. I use the IP address to access it.

The setup it designed to run for development in Developer Mode.

But after my instance runs for a few hours it stops showing any error messages, all that happens is it plays the error sound (Bing) and the developer console shows error messages as follows.


throttled socketio_client.js:149:12

Unable to handle failed response request.js:362:13


SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
    report_error http://18.142.245.129:8000/assets/frappe/dist/js/desk.bundle.AEQANDIT.js:30879
    500 http://18.142.245.129:8000/assets/frappe/dist/js/desk.bundle.AEQANDIT.js:30634
    call http://18.142.245.129:8000/assets/frappe/dist/js/desk.bundle.AEQANDIT.js:30748
    fire http://18.142.245.129:8000/assets/frappe/dist/js/libs.bundle.LLRFRX7M.js:1735
    fireWith http://18.142.245.129:8000/assets/frappe/dist/js/libs.bundle.LLRFRX7M.js:1821
    done http://18.142.245.129:8000/assets/frappe/dist/js/libs.bundle.LLRFRX7M.js:5450
    callback http://18.142.245.129:8000/assets/frappe/dist/js/libs.bundle.LLRFRX7M.js:5628
desk.bundle.AEQANDIT.js:30754:17

How to resolve this issue?

What must be the reason for this issue?

TIA