UnauthorizedError: invalid signature
While attempting to create a new wallet with the Coinbase-node API I am constantly getting errors back from the client.getAccounts() call.
var Client = require('coinbase').Client;
var client = new Client({
'apiKey': 'privateKeyHere',
'apiSecret': 'privateKeyHere'
});
client.getAccounts({}, function(err, accounts) {
console.log(err);
accounts.forEach(function(acct) {
console.log('my bal: ' + acct.balance.amount + ' for ' + acct.name);
});
});
I console logged my client and I am successfully connecting to Coinbase. Can anyone see what I am doing wrong?
Same error for me
Same in 2018.... Coinbase are u here ?
Same as of June 2018.... Has anyone fixed this?
Well... I can tell sadly that I get this in 2019...
error: AuthenticationError: invalid signature even when the error is clear enough the apiKey/apiSecret are correct according to the API Access dashboard.
So it turns out that they are deprecating (apparently) usage of apiKey/apiSecret. I tested using
var Client = require('coinbase').Client;
client = new Client({
'accessToken': '',
'refreshToken': ''
});
client.getAccounts({}, function(err, accounts) {
console.log(err);
accounts.forEach(function(acct) {
console.log('my bal: ' + acct.balance.amount + ' for ' + acct.name);
});
});
And this time it worked!
Omg was this mentioned anywhere? I was following the docs and nothing was working for me.
Hi, we are closing out PRs + Issues as this project is being archived.