Failed to Fetch popup coming frequently

0
Hi Everyone. Off late, we observe a strange popup comes in our app with a message "Failed to fetch data from...." and with a Ok button. when user submits ok, the app is normal. But the experience is frustrating that this popup is coming very frequently. Could not find anything in logs. so anyone else facing this issue? We observed that this issue happens more frequently when user keeps the session idle more than 5 mins. Any pointers are higly appreciated   Regards Ajay
asked
2 answers
1

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:

  1. Increase the session timeout in your Mendix app → Project Settings → Runtime → Custom settings → com.mendix.webui.SessionTimeout.

  2. Or, keep the session active by using a small microflow or nanoflow ping (heartbeat) every few minutes.

  3. Check for network/firewall or reverse proxy timeouts, if you’re running behind one.

answered
1

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!

answered