coinbase / coinbase-pro-node

DEPRECATED — The official Node.js library for Coinbase Pro
Apache License 2.0
844 stars 316 forks source link

Invalid Signature #388

Closed kevin192291 closed 4 years ago

kevin192291 commented 5 years ago

I am getting an invalid signature error. Debugging though it seems that a signature is being created, so, I am not sure why I am getting this. Here is my code from the demo on this github page.

const key = 'and my key';
const secret = 'my correct sec';
const passphrase = 'and and my passph';

const sandboxURI = 'https://api-public.sandbox.pro.coinbase.com';

const authedClient = new CoinbasePro.AuthenticatedClient(
  key,
  secret,
  passphrase,
  sandboxURI,
);
authedClient.getOrders().then(orders => {
    console.log(orders);
}).catch(err => {
    console.log(err);
});

the error is: Error: HTTP 400 Error: invalid signature

Am I doing something wrong or missing something here? Thank you!

drewrothstein commented 4 years ago

Hi, we are closing out PRs + Issues as this project is being archived.