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

generate-keys script errors out #548

Open
agerbens opened this issue May 16, 2023 · 0 comments
Open

generate-keys script errors out #548

agerbens opened this issue May 16, 2023 · 0 comments

Comments

@agerbens
Copy link
Contributor

I get an ERR_INVALID_CALLBACK error after running npm run generate-keys inside the api container:

/src/api# npm run generate-keys

> [email protected] generate-keys /src/api
> node src/bin/generate-keys.js

info: Generating keys. This will take a few seconds...
fs.js:129
  throw new ERR_INVALID_CALLBACK();
  ^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:129:9)
    at Object.write (fs.js:536:14)
    at fs.open (/src/api/src/bin/generate-keys.js:44:8)
    at FSReqWrap.oncomplete (fs.js:141:20)

Seems like it wants a callback passed in as the 3rd argument to fs.write in that script. Something like:

fs.write(fd, JSON.stringify(keystores), function(err, result) {
  if(err) console.log('error', err);
});
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