SignalK / freeboard-sk

Chartplotter implementation for Signal K servers
Apache License 2.0
35 stars 27 forks source link

Unable to add routes/waypoints #116

Closed mmaddex closed 1 year ago

mmaddex commented 1 year ago

I'm running Signal K 2.0.0, freeboard-sk 2.0.1.

I'm able to add/save/retrieve note resources, however trying to add any other type fails with

ERROR TypeError: crypto.randomUUID is not a function
    at get uuid [as uuid] (main.3ccffb5b54c839e3.js:1:806125)
    at i.buildRoute (main.3ccffb5b54c839e3.js:1:1174905)
    at i.showRouteNew (main.3ccffb5b54c839e3.js:1:1177937)
    at i.handleDrawEnd (main.3ccffb5b54c839e3.js:1:2115387)
    at main.3ccffb5b54c839e3.js:1:2133606
    at pS (main.3ccffb5b54c839e3.js:1:78813)
    at Object.s [as next] (main.3ccffb5b54c839e3.js:1:78951)
    at U.__tryOrUnsub (main.3ccffb5b54c839e3.js:1:5053)
    at U.next (main.3ccffb5b54c839e3.js:1:4294)
    at ue._next (main.3ccffb5b54c839e3.js:1:3489)

Worth noting I get the same error trying to import a GPX file.

Browser: Brave Version 1.52.122 Chromium: 114.0.5735.110 (Official Build) (x86_64)

Video of error https://youtu.be/8e87Yvr8eTY

All installed plugins

image
rgregg commented 1 year ago

I'm seeing this on Chrome Version 114.0.5735.133 as well. Reading a bit more, that function is only available in a secure context (HTTPS) and I'm hosting Signal-K on an http endpoint. Looks like I need to figure out how to host it on an SSL endpoint.

panaaj commented 1 year ago

I will issue a fix.

rgregg commented 1 year ago

Confirming this issue is fixed in the new update. Thanks @panaaj