Frequent "Invalid Request" Pop-up in Frappe – Possible Causes & Solutions?

Hi everyone,

I’m encountering a frequent “Invalid Request” pop-up message in Frappe. It happens intermittently across different modules, and I haven’t been able to pinpoint the exact cause.

Observations:

  • Appears randomly during navigation or form submissions.
  • Happens on different browsers and devices.
  • No specific errors appear in the browser console or Frappe logs.

Troubleshooting Attempts:

  • Cleared browser cache and cookies.
  • Checked CSRF settings and authentication mechanisms.
  • Verified Nginx/Traefik proxy configurations.

Has anyone else faced this issue? Could this be related to CSRF protection, WebSocket timeouts, or session expiration? Any insights or debugging tips would be appreciated!

Thanks in advance!

Installed Apps

Frappe Builder: v1.14.1

Frappe CRM: v1.34.14

Frappe Drive: v0.0.11

Education: v15.5.0

ERPNext: v15.50.1

Frappe Framework: v15.55.0

Frappe Whatsapp: v1.0.7

Gameplan: v0.0.1

Frappe HR: v15.39.1

Frappe Insights: v3.0.15

Frappe Lending: v0.0.1

Frappe LMS: v2.21.0

Payments: v0.0.1

Print Designer: v1.4.3

Raven: v2.0.3

Webshop: v0.0.1

Issue:
The background jobs in the "queue-long-1" container were likely fetching tasks from a previously deleted site, causing unexpected behavior.

Solution:
I ran the following commands to clear any stale jobs and cache:

bench --site site.domain.com purge-jobs  
bench --site site.domain.com clear-cache  

Then, I removed the queue container and restarted the Docker Compose stack. Everything appears to be working fine now without errors.

1 Like