Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add a decision table #22

Open
swarajthakur opened this issue Feb 9, 2025 · 1 comment
Open

Can't add a decision table #22

swarajthakur opened this issue Feb 9, 2025 · 1 comment

Comments

@swarajthakur
Copy link

Hi,
I am trying to get the editor working via docker, but this is the error I get when I access the app and add a decision table to the graph.

Unexpected Application Error! crypto.randomUUID is not a function TypeError: crypto.randomUUID is not a function at PO (http://192.168.10.205:3000/assets/index-P5ttpSqp.js:2826:89879) at http://192.168.10.205:3000/assets/index-P5ttpSqp.js:2826:90204 at mbe (http://192.168.10.205:3000/assets/index-P5ttpSqp.js:2003:22295) at NPe (http://192.168.10.205:3000/assets/index-P5ttpSqp.js:2003:22323) at bbe (http://192.168.10.205:3000/assets/index-P5ttpSqp.js:2019:1656) at RE (http://192.168.10.205:3000/assets/index-P5ttpSqp.js:2019:1722) at http://192.168.10.205:3000/assets/index-P5ttpSqp.js:2826:90159 at Object.useMemo (http://192.168.10.205:3000/assets/index-P5ttpSqp.js:39:23475) at er.useMemo (http://192.168.10.205:3000/assets/index-P5ttpSqp.js:10:6302) at Cpn (http://192.168.10.205:3000/assets/index-P5ttpSqp.js:2826:90147)

Could you please help.

@sebastiansterk
Copy link

The error occurs because crypto.randomUUID() is part of the Web Crypto API, which requires a secure context. This means that it will only work in the following scenarios:

  1. When running on localhost over any protocol (HTTP or HTTPS).
  2. When running on a domain or IP address over a secure HTTPS connection.

Since your application is being accessed via http://192.168.10.205:3000, the browser does not consider this a secure context, and crypto.randomUUID() is therefore unavailable.

To resolve this, you have two options:

  • Use localhost instead of an IP address.
  • Serve your application over HTTPS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants