node-libstorj icon indicating copy to clipboard operation
node-libstorj copied to clipboard

Unsupported protocol

Open xikimay opened this issue 8 years ago • 6 comments

When trying to getBuckets() and after authentication (with encryption_key/key) I get this message: "Unsupported protocol" I'm on OSX High Sierra, with the last version of curl

xikimay avatar Mar 30 '18 14:03 xikimay

@xikimay, can you share the code you're running?

bryanchriswhite avatar Mar 30 '18 16:03 bryanchriswhite

And can you elaborate on "after authentication"?

bryanchriswhite avatar Mar 30 '18 16:03 bryanchriswhite

Yes of course First I "Authenticate", create the Env Object using the key and encryptionKey param.

   encryptionKey = Storj.mnemonicGenerate(128)
            var storj = new Storj.Environment({
                key: postgresTask.encryption_privateKey,
                encryptionKey: encryptionKey
            })

And then I simply call getBuckets()

storj.getBuckets(function(err, result) {
      if (err) throw err
         console.log(result)
 })

xikimay avatar Mar 31 '18 11:03 xikimay

Also when logging with the normal auth as shown in the example it works:

const storj = new Environment({
  bridgeUrl: 'https://api.storj.io',
  bridgeUser: '[email protected]',
  bridgePass: 'password',
  encryptionKey: 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about',
  logLevel: 4
});

xikimay avatar Mar 31 '18 12:03 xikimay

Any updates on this issue?

julianapeace avatar Sep 12 '18 17:09 julianapeace

👋 Hey! Thanks for this contribution. Apologies for the delay in responding!

We've decided to rearchitect Storj, so that we can scale better. You can read more about this decision here. This means that we are entirely focused on v3 at the moment, in the storj/storj repository. Our white paper for v3 is coming very, very soon - follow along on the blog and in our Rocketchat.

As this repository is part of the v2 network, we're no longer maintaining this repository. I am going to close this for now. If you have any questions, I encourage you to jump on Rocketchat and ask them there. Thanks!

RichardLitt avatar Oct 30 '18 10:10 RichardLitt