Server script being triggered twice

All server scripts in my frappe instance are being triggered twice.

Frappe Framework : v13.35.1
ERPNext : v13.35.1

The same Server Script was working fine before, the service code was reverted to an older build which was working fine.

Working fine means server script being executed only once.
Thanks for any help.

We no longer provide support for version 13 or older. Version 13 reached the end of its life at the end of 2023. Please try a supported version and see if it works better for you.

And if have a bug then we can’t solve it. Kindly upgrade to version 14 or 15, then refresh and check again because lots of bugs fixed in the new version.

For more information, please refer to the guidelines.