ssbc / ssb-peer-invites

A new ssb invite system to create invites without having a pub
MIT License
26 stars 2 forks source link

Error: method:userInvites,getInvite is not in list of allowed methods #6

Closed cryptix closed 5 years ago

cryptix commented 5 years ago

I tried an invite with multiple peers on it but it seemed like it broke on the first that couldn't help it.

It's also hard to see from the trace where this is actually happening:

/Users/cryptix/ssb/scuttle-shell/node_modules/ssb-server/node_modules/muxrpcli/index.js:68
      throw err
      ^
Error: method:userInvites,getInvite is not in list of allowed methods
    at Function.perms.pre (/usr/lib/node_modules/scuttlebot/node_modules/muxrpc/permissions.js:88:14)
    at Object.<anonymous> (/usr/lib/node_modules/scuttlebot/node_modules/muxrpc/local-api.js:35:21)
    at Object.request (/usr/lib/node_modules/scuttlebot/node_modules/muxrpc/stream.js:46:17)
    at PacketStream._onrequest (/usr/lib/node_modules/scuttlebot/node_modules/packet-stream/index.js:161:17)
    at PacketStream.write (/usr/lib/node_modules/scuttlebot/node_modules/packet-stream/index.js:134:41)
    at /usr/lib/node_modules/scuttlebot/node_modules/muxrpc/pull-weird.js:56:15
    at /usr/lib/node_modules/scuttlebot/node_modules/pull-stream/sinks/drain.js:24:37
    at /usr/lib/node_modules/scuttlebot/node_modules/pull-goodbye/node_modules/pull-stream/throughs/filter.js:17:11
    at Object.cb (/usr/lib/node_modules/scuttlebot/node_modules/packet-stream-codec/index.js:111:11)
    at drain (/usr/lib/node_modules/scuttlebot/node_modules/pull-reader/index.js:39:14)
dominictarr commented 5 years ago

hmm, that should be allowed by this: https://github.com/ssbc/ssb-user-invites/blob/master/index.js#L146-L160

But you have to connect to that pub using the invite code - by calling openInvite. And all nodes need to be running user-invites plugin of course. What code did you run to get that error?

dominictarr commented 5 years ago

I got this error too, but it's working now. Note that @mixmix renamed the module to peer-invites so you'll have to create a new invite.

cryptix commented 5 years ago

okay, changed names. not seeing this anymore.