Flutterwave / Node-v3

NodeJS Library for Flutterwave for Business (F4B) v3 APIs
https://developer.flutterwave.com/
MIT License
35 stars 29 forks source link

Test script throwing error #13

Closed alob-mtc closed 4 years ago

alob-mtc commented 4 years ago

Getting this error anytime i try to run the test suit

/home/kira/Desktop/git/Flutterwave-node-v3/lib/rave.utils.js:8
        throw new error(message);
        ^

Error: Public Key required
    at Object.RaveUtils.emptyCheck (/home/kira/Desktop/git/Flutterwave-node-v3/lib/rave.utils.js:8:9)
    at new RaveBase (/home/kira/Desktop/git/Flutterwave-node-v3/lib/rave.base.js:6:12)
    at Suite.<anonymous> (/home/kira/Desktop/git/Flutterwave-node-v3/test/rave.bank.test.js:23:20)
    at Object.create (/home/kira/Desktop/git/Flutterwave-node-v3/node_modules/mocha/lib/interfaces/common.js:112:19)
    at context.describe.context.context (/home/kira/Desktop/git/Flutterwave-node-v3/node_modules/mocha/lib/interfaces/bdd.js:40:27)
    at Object.<anonymous> (/home/kira/Desktop/git/Flutterwave-node-v3/test/rave.bank.test.js:17:1)
mikey247 commented 2 years ago

@alob-mtc @Corvus97 how did you solve this please I'm having the same error

alob-mtc commented 2 years ago

To test you need to make use of a test PUBLIC_KEY and SECRET_KEY, this would be documented properly for easier contribution in the future. You can also raise a PR to address this.

mikey247 commented 2 years ago

Thanks I already sorted it out, I set my .env configuration after calling the flutterwave class.

mikey247 commented 2 years ago

I'm currently getting 502 errors when I make requests, it's returned html of a heroku app landing page, any idea what could be the matter???

alob-mtc commented 2 years ago

There might be a downtime, you can try again after a couple of minutes or hours.

mikey247 commented 2 years ago

It's been like this for days, I've sent emails but no response.