This issue usually happens when the user session expires or becomes idle for too long (around 5 minutes in your case). When the session times out, any data calls made afterward fail, showing the “Failed to fetch data from...” popup.
How to fix or reduce it:
Increase the session timeout in your Mendix app → Project Settings → Runtime → Custom settings → com.mendix.webui.SessionTimeout.
Or, keep the session active by using a small microflow or nanoflow ping (heartbeat) every few minutes.
Check for network/firewall or reverse proxy timeouts, if you’re running behind one.
Hi Ajay
I fell this is because of the session timeout or expire, may be you can look into your reverse proxy or Rate limitation, If it is random then in Dev tool -> network tab check how many xas call are going and where it gets failed after the idle time.
401/403 → auth/session/CSRF expiry.
0 or network error → connectivity / CORS / proxy drop.
502/504 → proxy/backend timeout.
Try this method!