Skip to content

GetRandomValues() method not supported #4

@boulder225

Description

@boulder225

🎯 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions