BTCMarkets / API

API
119 stars 30 forks source link

An error occurred while processing your request #139

Closed lmunro closed 6 years ago

lmunro commented 6 years ago

I'm having issues with authenticated requests and getting the unhelpful error: errorCode: 5, errorMessage: "An error occurred while processing your request." I'm not sure if this is authentication related or something else.

I can't seem to find the answer to these questions in your documentation:

  1. Do you pass the public api key HTTP header as base64 encoded?
  2. Does the authentication post example on this page https://github.com/BTCMarkets/API/wiki/Authentication#authentication-example-for-a-post-request contain valid values for the end result sample signature based on the provided api key, as I can't replicate the result with the key provided?
  3. Are you supposed to base64 decode the secret api key before using it in the HMAC? Or do you pass in the base64 to the HMAC?
lmunro commented 6 years ago
  1. No
  2. No 👎
  3. Pass decoded key