fuse-firebase-js error?

Hello,

Having a look at https://github.com/bolav/fuse-firebase-js.

Getting the following error upon build / transition change.

If I hit restart button on the error screen (two kids fighting over a robot!) app works fine; again, every state / transition change throws me this error in the preview console. Can you let me know what it can be? The error:

On Build:

Compiling syntax tree (1.3 s)
Generating code and data (3.1 s)
Build completed in 6.49 seconds
OpenGL Version: 2.1 INTEL-10.25.17
OpenGL Vendor: Intel Inc.
OpenGL Renderer: Intel(R) Iris(TM) Graphics 540
[Viewport]: Density changed, reifying
[Viewport]: addEventListener not implemented (storage)
[Viewport]: System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/jond/.local/share/FuseLocalStorage".
  at Fuse.Scripting.V8.Context.ThrowPendingExceptions () <0x110d93fa0 + 0x00054> in <filename unknown>:0 
  at Fuse.Scripting.V8.Object.CallMethod (System.String name, System.Object[] args) <0x113966a00 + 0x005b5> in <filename unknown>:0 
  at Fuse.Scripting.ClassInstance.CallMethod (Fuse.Scripting.Function method, System.Object[] args) <0x1139665e0 + 0x00091> in <filename unknown>:0 
  at Fuse.Scripting.RootableScriptModule.CallModuleFunc (Fuse.Scripting.Function moduleFunc, System.Object[] args) <0x113966590 + 0x00035> in <filename unknown>:0 
  at Fuse.Scripting.ScriptModule.Evaluate (Fuse.Scripting.Context c, Fuse.Scripting.ModuleResult result) <0x1111f5ff0 + 0x00327> in <filename unknown>:0 
  at Fuse.Scripting.RootableScriptModule.Evaluate (Fuse.Scripting.Context c, Fuse.Scripting.ModuleResult result) <0x1111ff300 + 0x00040> in <filename unknown>:0 
  at Fuse.Scripting.Module.Evaluate (Fuse.Scripting.Context c, System.String id) <0x1111f3fa0 + 0x001f2> in <filename unknown>:0 
  at Fuse.Scripting.ModuleInstance.EvaluateModule () <0x1111fe670 + 0x000e1> in <filename unknown>:0 
  at Fuse.Scripting.ModuleInstance.EvaluateExports () <0x1111fe520 + 0x0001b> in <filename unknown>:0 
  at Fuse.Scripting.ModuleInstance.Evaluate (Fuse.Scripting.Context context) <0x1137dce90 + 0x00384> in <filename unknown>:0 
  at Fuse.Scripting.ThreadWorker.RunInner () <0x1111bde40 + 0x004c7> in <filename unknown>:0 

On transition:

Viewport]: System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/jond/.local/share/FuseLocalStorage".
  at Fuse.Scripting.V8.Context.ThrowPendingExceptions () <0x1130e91a0 + 0x00054> in <filename unknown>:0 
  at Fuse.Scripting.V8.Function.Call (System.Object[] args) <0x1130ebea0 + 0x003dd> in <filename unknown>:0 
  at Fuse.Reactive.FuseJS.Http+FuseJSHttpRequest.OnStateChanged (Uno.Net.Http.HttpMessageHandlerRequest res) <0x125afc590 + 0x000fa> in <filename unknown>:0 
  at Uno.Net.Http.HttpMessageHandlerRequest.OnStateChanged () <0x125ae1610 + 0x00073> in <filename unknown>:0 
  at Uno.Net.Http.HttpMessageHandlerRequest.set_State (HttpRequestState value) <0x125ae15b0 + 0x0003d> in <filename unknown>:0 
  at Uno.Net.Http.HttpMessageHandlerRequest+DispatchClosure.Run () <0x12609d4c0 + 0x00053> in <filename unknown>:0 
  at Fuse.Scripting.ThreadWorker+ContextIgnoringAction.Run (Fuse.Scripting.Context context) <0x1260956a0 + 0x00019> in <filename unknown>:0 
  at Fuse.Scripting.ThreadWorker.RunInner () <0x111a592c0 + 0x004c7> in <filename unknown>:0 

The error is:

System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/jonathandurinda/.local/share/FuseLocalStorage" 

so I guess it’s something about paths on your system. You might want to check if the app has access to the files it’s trying to use, and that the files are there.

Uldis - thanks for reformatting & the reply.

Yes I checked that; that path is not there / created. If I manually create the path the error changes to access is denied even if I have permission set to the folder (read / write / everyone).

[Viewport]: Density changed, reifying
[Viewport]: addEventListener not implemented (storage)
[Viewport]: System.UnauthorizedAccessException: Access to the path '/Users/jond/.local/share/FuseLocalStorage' is denied.
  at Fuse.Scripting.V8.Context.ThrowPendingExceptions () <0x10ef611f0 + 0x00054> in <filename unknown>:0 
  at Fuse.Scripting.V8.Object.CallMethod (System.String name, System.Object[] args) <0x111a6b310 + 0x005b5> in <filename unknown>:0 
  at Fuse.Scripting.ClassInstance.CallMethod (Fuse.Scripting.Function method, System.Object[] args) <0x111a6aed0 + 0x00091> in <filename unknown>:0 
  at Fuse.Scripting.RootableScriptModule.CallModuleFunc (Fuse.Scripting.Function moduleFunc, System.Object[] args) <0x111a6ae80 + 0x00035> in <filename unknown>:0 
  at Fuse.Scripting.ScriptModule.Evaluate (Fuse.Scripting.Context c, Fuse.Scripting.ModuleResult result) <0x10ef67250 + 0x00327> in <filename unknown>:0 
  at Fuse.Scripting.RootableScriptModule.Evaluate (Fuse.Scripting.Context c, Fuse.Scripting.ModuleResult result) <0x111a68200 + 0x00040> in <filename unknown>:0 
  at Fuse.Scripting.Module.Evaluate (Fuse.Scripting.Context c, System.String id) <0x10ef65200 + 0x001f2> in <filename unknown>:0 
  at Fuse.Scripting.ModuleInstance.EvaluateModule () <0x111a67570 + 0x000e1> in <filename unknown>:0 
  at Fuse.Scripting.ModuleInstance.EvaluateExports () <0x111a673e0 + 0x0001b> in <filename unknown>:0 
  at Fuse.Scripting.ModuleInstance.Evaluate (Fuse.Scripting.Context context) <0x1104fa520 + 0x00384> in <filename unknown>:0 
  at Fuse.Scripting.ThreadWorker.RunInner () <0x10ef5df80 + 0x004c7> in <filename unknown>:0 

I even created a new project thinking it was a factor of the project, and same results. On a device I dont get the error, only on preview.

Update: I am getting an error “addEventListener not implemented (storage)”, this is logged out of this function:

var _events = {};
this.addEventListener = function(type, listener, p) {
	console.log("addEventListener not implemented ("+type+")");
	if (!_events[type]) {
		_events[type] = [];
	}
	_events[type].push(listener);
};

Again, this is from the fuse-firebase-js example by Bolav. Any direction would be much appreciated since I would not be able to develop with the error between states, and I need DB access.

I tried the Native implementation of Firebase and although it works great, it seems to operate only out of Device and not in preview (makes sense since its native only unless i’m mistaken), and ideally I can develop with FB tie in out of the preview using the JS flavor for now.

Resolved via another thread being opened / suggestion on that thread - just created /.local/share (instead of .local/share/FuseLocalStorage) and working now.

Still, be aware of the error in the 1st place.

Thanks :slight_smile: