Skip to content
New issue

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

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

Already on GitHub? # to your account

Bump @virgilsecurity/pythia-crypto to 2.0.0 #170

Open
HSCOGT opened this issue Dec 27, 2023 · 6 comments
Open

Bump @virgilsecurity/pythia-crypto to 2.0.0 #170

HSCOGT opened this issue Dec 27, 2023 · 6 comments

Comments

@HSCOGT
Copy link

HSCOGT commented Dec 27, 2023

Using Node 18.19.0, when calling EThree.initialize() I run into the following error.

>  TypeError: Failed to parse URL from /usr/src/app/node_modules/@virgilsecurity/core-pythia/libpythia.wasm
>      at Object.fetch (node:internal/deps/undici/undici:11730:11)
>      at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
>    [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
>        at new NodeError (node:internal/errors:405:5)
>        at new URL (node:internal/url:676:13)
>        at new Request (node:internal/deps/undici/undici:5270:25)
>        at fetch (node:internal/deps/undici/undici:9508:25)
>        at Object.fetch (node:internal/deps/undici/undici:11728:18)
>        at fetch (node:internal/process/pre_execution:281:25)
>        at /usr/src/app/node_modules/@virgilsecurity/core-pythia/node.cjs.js:1:22469
>        at /usr/src/app/node_modules/@virgilsecurity/core-pythia/node.cjs.js:1:22686
>        at new r (/usr/src/app/node_modules/@virgilsecurity/core-pythia/node.cjs.js:1:22692)
>        at o (/usr/src/app/node_modules/@virgilsecurity/core-pythia/node.cjs.js:1:39936)
>        at ModuleInitializer.loadModule (/usr/src/app/node_modules/@virgilsecurity/init-utils/dist/init-utils.cjs.js:75:55)
>        at /usr/src/app/node_modules/@virgilsecurity/init-utils/dist/init-utils.cjs.js:93:29
>        at Array.map (<anonymous>)
>        at ModuleInitializer.loadModules [as initPythia] (/usr/src/app/node_modules/@virgilsecurity/init-utils/dist/init-utils.cjs.js:89:39)
>        at EThree.initialize (/usr/src/app/node_modules/@virgilsecurity/e3kit-node/dist/node.cjs.js:106:81)
>        at getE3Instance (/usr/src/app/lib/encryption/encryption_utils.js:42:46) {
>      input: '/usr/src/app/node_modules/@virgilsecurity/core-pythia/libpythia.wasm',
>      code: 'ERR_INVALID_URL'
>    }
>  }

Similar to: #166 (comment), but the other one was caused by 'virgil-crypto' this one is due to 'core-pythia'. The error is fixed on the most recent version 2.0.0.

@HSCOGT
Copy link
Author

HSCOGT commented Dec 29, 2023

Updating pythia-crypto to 2.0.0 fixed the issue above, but now whenever I try to call EThree.initialize(); it fails and crashes the app without any logs or stack trace of the error. Can someone at Virgil take a look at this, please?

@rstp-god
Copy link
Collaborator

Hello @HSCOGT ! We updated e3kit for node18+ again, try with 3.0.2 version, if problem still exists tell us back!

@HSCOGT
Copy link
Author

HSCOGT commented Jan 3, 2024

Hi @rstp-god, I tried running 3.0.2 but I'm getting the original error since the SDK is still using 'pythia-crypto' v1.1.3.

@rstp-god
Copy link
Collaborator

@HSCOGT Hello! Try new 3.0.5 release, fix all depends!

@HSCOGT
Copy link
Author

HSCOGT commented Jan 30, 2024

@rstp-god, I'm still getting an error, in either Node 18 or 20, this happens whenever I try to initialize E3.

Screenshot 2024-01-30 at 16 33 55

@HSCOGT
Copy link
Author

HSCOGT commented Feb 26, 2024

@rstp-god Any updates?

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

No branches or pull requests

2 participants