Not Handled: OnNewAll

I get the error Not Handled: OnNewAll after I changed some ux and js, and I changed a lot. I can’t at all trace it back to what it is now despite removing a lot of code trying to narrow it down, there’s nothing to indicate where the problem is or even what this means at all, I really want to be more specific but this is literally all I know.

Hi,

Thanks for providing the test case on slack.

I am unable to reproduce the problem in version 0.10. Unless you have other steps needed to reproduce the crash, I am assuming this is fixed.

Fixed! Problems where an Observable list was being generated from a save file generated by the app which has become corrupted somehow, after replacing this file and updating fuse everything worked out 4 hours later :smiley:

I had the same error. Took me about 8 hours or so of trying everything before I came across this thread. Slow learner :wink:

No idea what the problem was. Solved by loading an example that was working, pasted my code into it, and go figure - my code now worked. Frustrating.

Hope this helps someone else!

FOR REFERENCE.

This is my code with the line that didn’t work and then did work (in another file):


var data = Observable();

var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
       if (xhttp.readyState == 4 && xhttp.status == 200) {
             var schedule = JSON.parse(xhttp.responseText);
             if (schedule.length > 0) {
                        for (var i = 0; i < schedule.length; i++) {
                            data.add(schedule[i]);   // THIS IS THE LINE THAT CAUSED THE ERROR
                        }
                    } else {
                        console.log('Empty Schedule Received');
                    }
                }
};
xhttp.open("GET", "https://www.someaddresshere.com/getSchedule&quot;, true);
xhttp.send();

This is the full error that I had:

ERROR: Not handled: OnNewAll
    System.Exception occured.
      at Fuse.Reactive.DataBinding1[System.String].Fuse.Reactive.IObserver.OnNewAll (Fuse.Scripting.Array values) [0x00000] in &lt;filename unknown&gt;:0 
      at Uno.Threading.IDispatcherExtensions+Arg1Invoke1[Fuse.Scripting.Array].Run () [0x00000] in <filename unknown>:0 
      at Fuse.Reactive.Dispatcher.Run () [0x00000] in <filename unknown>:0 
      at Fuse.UpdateListener.Invoke () [0x00000] in <filename unknown>:0 
      at Fuse.UpdateManager.Update (Fuse.Stage stage) [0x00000] in <filename unknown>:0