splitwise icon indicating copy to clipboard operation
splitwise copied to clipboard

Basic example throws `Error: authentication failed - client error`

Open hansipete opened this issue 3 years ago • 2 comments

Hello,

I'm struggling using this API for my project... at the very beginning :)

I initialised a new node project and added this package only. Now when running the basic example it returns Error: authentication failed - client error

I put in the consumer key and secret that was given to me, when I created my app in the Splitwise Dashboard.

Is this still supposed to work?

Thank you and have a great day everyone, Hans

hansipete avatar Jan 25 '23 09:01 hansipete

sorry for the slow reply @hansipete. can you provide an example of the code that produces the error (with secrets redacted)? thanks!

keriwarr avatar Mar 01 '23 07:03 keriwarr

Hello,

I was using like:

const sw = Splitwise({
   consumerKey: SPLITWISE_CONSUMER_KEY,
   consumerSecret: SPLITWISE_CONSUMER_SECRET,
 });

sw.getCurrentUser()
  .then((data) => {
     console.log(data);
  })
  .catch((e) => {
     console.log(e);
  });

And am getting: Error: getCurrentUser - getCurrentUser - authentication failed - unknown error

vassadi avatar Aug 21 '24 00:08 vassadi