akamai / akamai/NetStorageKit-Node
Error when using express-openid and netstorageapi in the same server
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with package.json and the dependency tree for netstorageapi, agent-base, and express-openid-connect. Reproduce server startup and opening the login page with both packages installed, then compare behavior with the documented agent-base override. Done means the two packages work together without the reported connection or certificate errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100