Uncaught TypeError with iText pdf2Data

74 views Asked by At

I've installed iText pdf2Data version 4.3.2 on a clean Ubuntu 22 VM using the provided helper scripts as instructed here.

The installation works an I can login and start the creation of a new template. But when I get to the point to define data fields, an empty page is shown and and error is thrown in the browser console:

Uncaught TypeError: crypto.randomUUID is not a function
    uz http://192.168.30.120/editor/static/js/main.736088aa.js:2
    <anonymous> http://192.168.30.120/editor/static/js/main.736088aa.js:2
    <anonymous> http://192.168.30.120/editor/static/js/main.736088aa.js:2
    <anonymous> http://192.168.30.120/editor/static/js/main.736088aa.js:2

Tried with installing full application and editor standalone. Both give the same error. Tried older versions 4.3.1 and 4.2.1 but both redirect to the login page after creating a new template.

Any suggestions?

2

There are 2 answers

0
PierreR On BEST ANSWER

Thanks Yuliya Ivaniukovich, added reverse proxy with https and now it works!

3
Yuliya Ivaniukovich On

I believe you might be using a browser that doesn't support mentioned function. See https://caniuse.com/mdn-api_crypto_randomuuid for the list of supported ones.

PS: it should probably worth publishing a page with minimal supported browser versions list in documentation.