Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AfLosada opened this issue Sep 9, 2022 · 0 comments
Open

Comments

@AfLosada
Copy link

AfLosada commented Sep 9, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant