Error with socketio while geting data in custom html file

Hello, community,

I have strange issue appear in version 12
I have to make tst.html file in template/page folder and add below script to use frappe and use to get data from a python function
so I add this script in the head tag

		window.frappe = {};
		frappe.ready_events = [];
		frappe.ready = function(fn) {
		window.dev_server = {{ dev_server }};
		window.socketio_port = {{ frappe.socketio_port }};

and include js

<script type="text/javascript"
<script src="/assets/frappe/js/lib/"></script>
<script type="text/javascript" src="/assets/js/frappe-web.min.js"></script>
<script type="text/javascript"

This is my js code/

frappe.ready(function () {{
        method: 'dashboard.templates.pages.tst1.get_project_list',
        callback: function(r) {



and this is py file/

def get_project_list():
    projects = frappe.db.sql_list("select name from `tabProject` order by modified desc")
    return projects

Now when I call this page it successfully gets data(without login to system_as guest)

But if I log in using email and password and call the page again it won’t work and show confirm message and then the system is stop

After refreshing page/

This error appears just after updating to the new version!
Any suggestions?