I have tripple checked my API key and secret and are correct but still gives me the following error:
errorCode: 301, error: 'API Key must be of length 64.'
const createSignature = function (timestamp, method, url, body) {
let string = timestamp + method + '/v2' + url;
if (Object.keys(body).length !== 0) {
string += JSON.stringify(body);
}
let signature = crypto
.createHmac('sha256', process.env.API_SECRET)
.update(string)
.digest('hex');
return signature;
};
I have tripple checked my API key and secret and are correct but still gives me the following error: errorCode: 301, error: 'API Key must be of length 64.'
Note: even without setting the headers it gives me the same error
I can access all other endpoints from the API just fine