frappe app doesn't load all python modules of all the apps on startup. It loads the hooks.py only if it is not already cached. Because of this the code to install the regex coverter to not running, causing errors. Fixed it by replacing the regex route with a string route. The issue is it also matches the paths like `socket.io` and `website_script.js` etc. Handled that by whitelisting those routes.
152 B
152 B