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

Error: method is not in list of allowed methods #58

Open
nichoth opened this issue Jan 23, 2022 · 0 comments
Open

Error: method is not in list of allowed methods #58

nichoth opened this issue Jan 23, 2022 · 0 comments

Comments

@nichoth
Copy link
Contributor

nichoth commented Jan 23, 2022

There are several modules intertwined here, so I'm posting this here since this I think is the top module in the dependency graph I think.

This is me trying to start a ssb-server2 module, being a library that provides a CLI interface and daemon-like process for ssb, like ssb-server.

I started by more-or-less copying the structure of ssb-server -- https://github.com/planetary-social/ssb-server2/blob/efbbe600294695893551384981a6faa771a5091d/bin.js#L99

The call to ssb-client:

    Client(config.keys, opts, (err, rpc) => {

However I am stuck with this error when I start the server then try calling a method:

  stack: 'Error: method:db,getStatus is not in list of allowed methods\n' +

This is after running NODE_ENV=test node ./bin.js start -- --path=./test-data in one terminal, then doing NODE_ENV=test node ./bin.js db.getStatus -- --path=./test-data in another terminal.

I feel like I need to do something with secret-handshake in order for this to work, but I'm not sure.

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