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

Jovo client-web error, crypto.getRandomValues() not supported #1423

Open
1 of 4 tasks
LydiaTM opened this issue Sep 12, 2022 · 3 comments
Open
1 of 4 tasks

Jovo client-web error, crypto.getRandomValues() not supported #1423

LydiaTM opened this issue Sep 12, 2022 · 3 comments

Comments

@LydiaTM
Copy link

LydiaTM commented Sep 12, 2022

I'm submitting a...

  • Bug report
  • Feature request
  • Documentation issue or request
  • Other... Please describe:

Behavior

Hello!

I have a jovo project running on port 3000 and I need to create a web client. I have followed the instructions given in the documentation (https://github.com/jovotech/jovo-framework/tree/v4/latest/clients/client-web/docs), but when I run the js with node I get the following error:

Error: crypto.getRandomValues() not supported.

I have been working on it for days and I am not able to solve the error, I don't even understand what it is due to. From what I've been investigating it's a React error.

Thank you in advance and sorry for the inconvenience. I look forward to hearing from you.

Your Environment

  • Jovo Framework version used: 4.0.0
  • Operating System: Windows 10 / Ubuntu 20.04
@jankoenig
Copy link
Member

HI @LydiaTM,

A few questions to help us investigate the issue:

  • Which Node version are you using?
  • Which web client are you using? React, Vue?
  • If you test one of our existing web starters, do you run into that problem as well? You can find them on our example page: https://www.jovo.tech/examples

Thanks,
Jan

@LydiaTM
Copy link
Author

LydiaTM commented Sep 12, 2022

I answer below:

  • v16.16.0
  • React client
  • No, only when I try to create the client in a new js, using the following code:
const JovoWebClient = require('@jovotech/client-web');

const client = new JovoWebClient.Client('http://192.168.0.46:3000/webhook', {
    version: '4.0.0',
    locale: 'en',
    platform: 'web',
    device: {
        id: '<uuid>',
        capabilities: [
            'AUDIO', 'SCREEN'
        ],
    },
    input: {
        audioRecorder: { /* ... */ },
        speechRecognizer: { /* ... */ },
    },
    output: {
        speechSynthesizer: { /* ... */ },
        audioPlayer: { /* ... */ },
        reprompts: { /* ... */ },
    },
    store: {
        storageKey: 'JOVO_WEB_CLIENT_DATA',
        shouldPersistSession: true,
        sessionExpirationInSeconds: 1800,
    }

});

Thank you for the quick response

@LydiaTM
Copy link
Author

LydiaTM commented Sep 13, 2022

I don't know if there is any manual where the format of the json to send to the api is specified. When I try to make a POST request to the api I get the following error:

JOVO ERROR  MatchingPlatformNotFoundError

message:
No registered platform can handle the request.

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

2 participants