Node.js Complaning about self-signed certificate in chain

I am trying to set up VisualEditor on my mediawiki installation and I am running into issues with Parsoid and node.js. My wiki is set up with a internally signed certificate with a internal CA. My Internal CA is fully trusted on my Debian container (Proxmox) and using stuff like curl doesn’t return any errors for a self-signed cert. Node will log something like this:

{"name":"parsoid","hostname":"wiki","pid":1785,"level":60,"err":{"message":"Config Request failure for \"https://wiki.dblitt99.tk/mediawiki/api.php\": Error: self signed certificate in certificate chain","name":"lib/index.js","stack":"lib/index.js: Config Request failure for \"https://wiki.dblitt99.tk/mediawiki/api.php\": Error: self signed certificate in certificate chain\n    at ConfigRequest.ApiRequest._requestCB (/opt/parsoid/lib/mw/ApiRequest.js:411:15)\n    at self.callback (/opt/parsoid/node_modules/request/request.js:186:22)\n    at Request.emit (events.js:127:13)\n    at Request.onRequestError (/opt/parsoid/node_modules/request/request.js:878:8)\n    at ClientRequest.emit (events.js:132:15)\n    at TLSSocket.socketErrorListener (_http_client.js:394:9)\n    at TLSSocket.emit (events.js:127:13)\n    at emitErrorNT (internal/streams/destroy.js:64:8)\n    at process._tickCallback (internal/process/next_tick.js:152:19)","levelPath":"fatal/request"},"msg":"Config Request failure for \"https://wiki.dblitt99.tk/mediawiki/api.php\": Error: self signed certificate in certificate chain","time":"2018-04-01T22:20:45.869Z","v":0}

I understand that it should not trust this certificate because it is internally signed, but why is it complaining when the root CA is trusted by the OS?