-
-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Bug Affects...
[x] other / unknown
Current Behavior / Expected Behavior
After using an app for some time, I got this error:
"2sxc app is unhealthy. Error while building App state in memory, probably during initial load. trying to add entity, but not in loading state. set that first!"
The app refused to start. Cleared cache and restarted server, it worked again.
There has to be a more gracious way to deal with this type of errors, possibly restarting the app/server automatically.
To Reproduce (Steps, Videos, Screenshots, Apps)
const someSvc = sxc.data('someDataType');
someSvc.update(someId, someData)
.then(clientsSvc.update(someOtherId, someOtherData)
.then(() => location.reload()));
This was probably caused by this type of code and two api calls very close.
Adding a simple 500ms setTimeout between them seems to prevent the issue.
Your environment
- 2sxc version(s): 20.03
- DNN / Oqtane: DNN 10.01
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels