Uncaught Exception when re instantiating filemanager

forgive me for not providing a working example .

i am using $$(filemanager).destructor to destory the file manager.
when i re instantiate it i immediately get an uncaught exception. i have included the details of the error below along with the code contained in webix.debug.js - please note i indicate which is line 1085.

i am wondering if you have any idea on what might be causing this exception.

thank you

[
{
“msg”: “Uncaught undefined”,
“url”: “http://localhost:3000/app/client/compatibility/webix/aaa_load_first/webix_debug.js?20129318d04c3fd0921722231c7adc2c80dcf7ac”,
“line”: 1086,
“col”: 5,
“error”: 5
}
]

code in webix.debug.js

promise.prototype.finish = function (type) {
var self = this
self.state = type

	if (self.state === 'resolved') {
		for (var i = 0; i < self.next.length; i++)
			self.next[i].resolve(self.val);
}

	if (self.state === 'rejected') {
		for (var i = 0; i < self.next.length; i++)
			self.next[i].reject(self.val);

line 1085—> if (webix.assert && !self.next.length)
throw(self.val);
}
}

Hi,

we can’t reproduce the problem locally. Could provide mode details, for example, snippet with filemanager initialization ? (you can open a ticket in members’ area).

thanks - will try to supply code that replicates the problem.

Hi,

I’m getting the same issue. Stack trace has no content but is linked to the same location as the previous poster. I just see:

uncaught null;

in the console. It’s quite annoying, as it get’s logged by my monitoring account many times each day.

So, the line causing the error is simply:

$$("files:manager").load("/files/v1/ls");

The manager works and parses the files as expected, but there is a null promise in there, somewhere, which raises the error.