Open cryptix opened 5 years ago
tests pass though..? no idea what is going on here......
Here is what I see when I use the plugin through muxrpc:
cryptix@cptx-vrs ~> sbot manifest | jq .userInvites
{
"getInvite": "async",
"confirm": "async",
"create": "async",
"willReplicate": "async",
"getNearbyPubs": "async"
}
fixed in ssb-user-invites@1.1.2 I also cleared up a few things in the readme. The problem was that the tests were using a local sbot instance so they didn't need the manifest.
works but now running into #5
Then again, I just got this:
~> sbot peerInvites.openInvite (cat peerInvite1)
/Users/cryptix/ssb/scuttle-shell/node_modules/ssb-server/node_modules/muxrpcli/index.js:68
throw err
^
Error: method:peerInvites,getInvite is not in list of allowed methods
at Function.perms.pre (/var/lib/sbot/src/scuttlebot/node_modules/muxrpc/permissions.js:88:14)
at Object.<anonymous> (/var/lib/sbot/src/scuttlebot/node_modules/muxrpc/local-api.js:35:21)
at Object.request (/var/lib/sbot/src/scuttlebot/node_modules/muxrpc/stream.js:48:17)
at PacketStream._onrequest (/var/lib/sbot/src/scuttlebot/node_modules/packet-stream/index.js:161:17)
at PacketStream.write (/var/lib/sbot/src/scuttlebot/node_modules/packet-stream/index.js:134:41)
at /var/lib/sbot/src/scuttlebot/node_modules/muxrpc/pull-weird.js:56:15
at /var/lib/sbot/src/scuttlebot/node_modules/pull-stream/sinks/drain.js:24:37
at /var/lib/sbot/src/scuttlebot/node_modules/pull-goodbye/node_modules/pull-stream/throughs/filter.js:17:11
at Object.cb (/var/lib/sbot/src/scuttlebot/node_modules/packet-stream-codec/index.js:111:11)
at drain (/var/lib/sbot/src/scuttlebot/node_modules/pull-reader/index.js:39:14)
Seems like the peer selection for the pubs is off a little.
hmm, when you connect to the pub, if you are using an invite code seed, but the pub hasn't seen the invitation message yet, it will just think your are an anonymous peer. That is why it won't allow getInvite. once it does the invite it should work. At least, that is one possible explaination. Or, the pub doesn't have ssb-peer-invites plugin.
some ideas:
I was able to create an invite but how do I redeem them? The readme tells me to use
userInvites.openInvite
but there is no such command on the manifest. Is itgetInvite
? That only tells meError: unknown invite:inv:kEa...
so I guess not..?Later the readme talks about
accepInvite
which also isn't there.