eclipse-sirius / sirius-web

Sirius Web: open-source low-code platform to define custom web applications supporting your specific visual languages
https://eclipse.dev/sirius/sirius-web.html
Eclipse Public License 2.0
79 stars 52 forks source link

Uncaught TypeError: crypto.randomUUID is not a function #3922

Open chenhaoqiang opened 2 months ago

chenhaoqiang commented 2 months ago

Screenshots

image

...

Steps to reproduce

I followed the deployment documentation to set up the database, and then I used the following command to start the application:

java -jar sirius-web-2024.7.11.jar \
     --spring.datasource.url=jdbc:postgresql://localhost:5433/sirius-web-db \
     --spring.datasource.username=dbuser \
     --spring.datasource.password=dbpwd

After that, I tried to access http://127.0.0.1:8080, but the page was blank. When I checked the browser's developer tools (F12), there were errors, and I have taken screenshots of them. ...

Expected behavior

The page should load normally. ...

Actual behavior

The page displays as blank. ...

chenhaoqiang commented 2 months ago

I'm using the Edge browser version 120.0.2210.89, and it seems to be an issue related to this: https://github.com/eclipse-sirius/sirius-web/issues/1848. It's a browser compatibility issue with the Crypto API: randomUUID(), as detailed here: https://caniuse.com/mdn-api_crypto_randomuuid. However, I see that Edge version 120 is supposed to support it. image I'll try upgrading Edge to version 127 and see if that helps.

chenhaoqiang commented 2 months ago

Upgraded to Edge version 127, but it's still not working. I found a similar issue elsewhere, and it requires HTTPS. image https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID