Skip to content

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

Description

@AfLosada

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions