1 | | Hi! I'm not sure if this is still relevant for you, but my application got this problem as well. The normal application running fine (with nginx and gunicorn/uvicorn), but whenever I hit a non-existing page a 500 error was thrown. I tried to restart the mysql service, but then I got even worse problems. So I enabled heavy logging in mysql and then I found out I missed quotes around `'init_command': 'SET sql_mode=STRICT_TRANS_TABLES'` so it wasn't a string, but an invalid identifier. Fixing that problem solved everything magically, and now the 404 pages properly throw a 404. Maybe this helps? |