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

GetRandomValues() method not supported #4

Open
boulder225 opened this issue Nov 9, 2023 · 0 comments
Open

GetRandomValues() method not supported #4

boulder225 opened this issue Nov 9, 2023 · 0 comments

Comments

@boulder225
Copy link

🎯 Problem to be solved

The @obolnetwork/obol-sdk package is throwing an error related to crypto.getRandomValues() not being supported when used within the obol-sdk-examples/JS-Example. This error prevents the SDK's proper function and could indicate a compatibility issue with the version of Node.js being used or a misconfiguration in the SDK itself.

/obol-sdk-examples/JS-Example/node_modules/@obolnetwork/obol-sdk/dist/index.js:17
      throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
            ^

Error: crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported
    at rng (/Users/sg/obol/obolnetwork/staging/obol-sdk-examples/JS-Example/node_modules/@obolnetwork/obol-sdk/dist/index.js:17:13)
    at v4 (/Users/sg/obol/obolnetwork/staging/obol-sdk-examples/JS-Example/node_modules/@obolnetwork/obol-sdk/dist/index.js:52:54)
    at Client.createClusterDefinition (/Users/sg/obol/obolnetwork/staging/obol-sdk-examples/JS-Example/node_modules/@obolnetwork/obol-sdk/dist/index.js:15477:19)
    at file:///Users/sg/obol/obolnetwork/staging/obol-sdk-examples/JS-Example/index.js:141:31
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

Node.js v18.17.1
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

1 participant