Please look there: https://snippet.dhtmlx.com/5393uhfu
I have two promises with errors, first is fetch, and second is dhx.awaitRedraw.
I have there onunhandledrejection function too, which works fine for fetch error, but not working for awaitRedraw.
In my application, only one way I see to awaitRedraw error handling is copy catch fragment to all occurencies of awaitRedraw.
Why onunhandlerejection not working for awaitRedraw errors?