Refresh page events gives unknown errors

0
My sandbox enviroment https://allnieuw-sandbox.mxapps.io/ has an event that refreshes the page every 30 seconds. It does that correct a few time, but after a while it will respond in an unexpecterd error. The log file says: 14:47:16runtime-container/2vrd7ERRORClient:14:47:16runtime-container/2vrd7Error14:47:16runtime-container/2vrd7at PS (https://allnieuw-sandbox.mxapps.io/dist/Dtmj65WC.js:53:32569)14:47:16runtime-container/2vrd7at async https://allnieuw-sandbox.mxapps.io/dist/Dtmj65WC.js:65:1264814:47:16runtime-container/2vrd7at async https://allnieuw-sandbox.mxapps.io/dist/Dtmj65WC.js:53:3371614:47:16runtime-container/2vrd7at async t.Sunday (https://allnieuw-sandbox.mxapps.io/dist/Dtmj65WC.js:53:33320)14:47:16runtime-container/2vrd7at async fR.retrieveByXPath (https://allnieuw-sandbox.mxapps.io/dist/Dtmj65WC.js:65:3908)14:47:16runtime-container/2vrd7at async https://allnieuw-sandbox.mxapps.io/dist/CMOIuwah.js:1:5394Nothing of this sounds familiar for me. Anybody any idea about this. Using Modeller 11.6.2 , using react/strict mode
asked
1 answers
0

For this one, I probably wouldn't answer.


The reason is that the issue is effectively solved already:


The commenter explained the likely cause (refresh behavior causing client issues).

The original poster tested a change based on that advice.

The original poster replied:


"Wow, you helped me a lot. I moved the refresh from the event to the datagrid, now the problem is solved."


That's essentially confirmation that the solution worked.


If you absolutely want to add an answer so there's an official answer on the thread, keep it short and summarize the resolution:


The issue was caused by refreshing data through the page event mechanism. Although it worked initially, repeated refreshes eventually caused client-side errors in the React client.


The fix was to move the refresh logic to the Data Grid/Data Widget itself instead of triggering it from the page event.


After moving the refresh to the grid, the unexpected errors stopped occurring.


If anyone encounters similar stack traces involving:


Plain Text

retrieveByXPath


and intermittent client-side errors after repeated refreshes, check whether the refresh is being triggered from a page-level event and consider refreshing only the specific widget or data source that needs updating.


But honestly, I'd spend time on another unanswered question because this one has already been solved and acknowledged by the OP.

answered