FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Scriptor should catch critical errors before it reaches runtime

Open sumedhb1995 opened this issue 6 years ago • 1 comments

Runtime shows a number of errors that are not from the runtime itself, . I.e. Scriptor (likely) throws exception while processing events, and runtime has to kill container (it's critical error) as we have no clue if data model is in stable state to continue receive new updates.

These errors should not come to runtime - i.e. Scriptor handlers and null/undefined checks should catch it and make decision if it's critical or not and close container cleanly using closeFn(). The error should be reported through Scriptor's own event, not the runtime.

Some example errors: Cannot read property 'nodeType' of null Cannot read property 'text' of undefined Cannot set property 'modelNode' of undefined Cannot read property 'page' of null

sumedhb1995 avatar May 05 '20 18:05 sumedhb1995

Tracking in Azure Dev Ops, Product Backlog Item 4140630

KRyan avatar May 05 '20 18:05 KRyan