Closed giovannirco closed 3 years ago
The error is related to the certificate you mentioned in the config file, for a https website, you need a certificate. This part of config is where you can put the path of the cert files. In the latest code, I changed it to disable by default.
For the CMC api key, if you don't use the price related APIs, then you don't need it.
Ahh gotcha, thanks for explaining what was the error. I have tried running your commit and although the application starts I wasn't able to fetch information from the web server. I took a deeper look today with the help of a friend and the problem lies on the fact that the server was still using https although we didn't offer any certs or keys and I ended up with an empty reply every time I queried it. I have forked the repo and did a couple of changes needed and now I have the api running smoothly on my env. I created the PR #22 but it only uses HTTP instead of HTTPS which is not ideal so we may need an option to toggle between http or https.
The PR #24 fixes my issue and also handle the option between HTTP and HTTPS just fine. Can I get it reviewed and possibly merged please?
Fixed available on master branch. Thanks.
After getting the crawler working I proceeded to the api and I am having a few errors which is stopping the application before initializing
I suspect the issue might be related to the recent changes on the MongoDB driver made on the crawler.
I am using a super simple Dockerfile to just git clone the repo and run
npm install
at the correct directory and using a start script as an entry point of the docker image to run the app (node run &
) and handle sigs issued by kubernetes, just something we usually do around here with the applications we run and works fine for crawler.About the config file, what does this do?
And do I need a CMC api key? or is this just for the frontend?