akamai / NetStorageKit-Node

Akamai NetStorage API for Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when using express-openid and netstorageapi in the same server

AfLosada opened this issue · comments

Hi!

I am working in a project that uses express-openid-connect and netstorageapi and I am facing this problem when starting the server and opening the login page in the browser.

AggregateError: Issuer.discover() failed.
    RequestError: connect ECONNREFUSED 127.0.0.1:443
    RequestError: connect ECONNREFUSED 127.0.0.1:443

After following some instructions to use a proxy to run the server I got the following error.

AggregateError: Issuer.discover() failed.
    RequestError: unable to get local issuer certificate
    RequestError: unable to get local issuer certificate

This lead me to the following issue in express-openid-connect's Github. Which pointed to a conflict in the version of agent-base, I managed to make it work by including this in my package.json.

"overrides": {
    "netstorageapi": {
        "agent-base": "6.0.2"
    }
  }

And this fixed all of the problems, I believe it should work with any version greater than 5 for the agent-base.