bitpay / node-bitpay-client

A Node.js module and command line client for interacting with BitPay's Cryptographically Secure API
102 stars 95 forks source link

'Invalid signature' response on AWS #97

Open lyudad opened 5 years ago

lyudad commented 5 years ago

I receive error: Error: { error: 'Invalid signature' } on request GET: https://test.bitpay.com:443/tokens. But signature is right because I can get token via Postman using the same headers.

I'm using bitpay-rest lib and AWS Lambda.

iotnoshennyi commented 5 years ago

Any update?

danescsvn commented 5 years ago

@DomIn3339 @lyudad we just pushed a new version of the client that fixes this issue. Please clone the latest version and let us know if you have any issues with it.

Under root directory run the following:

npm run setup npm install

Thank you.

lyudad commented 5 years ago

imageedit_2_4393732238

version was not updated

lyudad commented 5 years ago

I have also checked code in rest-client.js same code as it was

2018-09-09 13 52 11

but should be something like

2018-09-09 13 53 54

(as aws do not have root directory)

lyudad commented 5 years ago

I have download library from github and install manually to project, have same issue. Let me know if you need any details

pieterpoorthuis commented 5 years ago

@lyudad we pushed 0.3.2 a week ago. Does this work for you? See https://www.npmjs.com/package/bitpay-rest

lyudad commented 5 years ago

Hello, no. I have commented above after new library release

pieterpoorthuis commented 5 years ago

At the time of your post we had 0.3.1 as the latest version. Can you verify you tested 0.3.2?

lyudad commented 5 years ago

yes, you have pushed to github, but not to npm, so I have installed manually last time, I have checked again today, I still have the same. Need I instal some additional libraries to make it work?

lyudad commented 5 years ago

Also I notice that on other computer with ubunta it work, but on macOS and debian no

danescsvn commented 5 years ago

@lyudad if you could please run the following command on a new/different directory would be great. We have pushed a new version to NPM, 0.3.2 https://www.npmjs.com/package/bitpay-rest

npm install bitpay-rest

You should see the same experience on MacOS, that is what we use here. Please confirm and send a secreenshot if you can. Thank you.

Cheers, DDE