Unable to fetch from local service with self-signed certificate
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 365
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 169
Description
Executing a fetch request in a step to a locally running service with a self-signed certificate generates the below error message. I have NODE_EXTRA_CA_CERTS environment variable set with the local CA for the certificates. I am using the sandboxed fetch method from the workflow package.
Error message;
FetchError: request to https://.../ failed, reason: unable to verify the first certificate; if the root CA is installed locally, try running Node.js with --use-system-ca
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 at the workflow package's sandboxed fetch method and reproduce the request against a local service using NODE_EXTRA_CA_CERTS. The report names no source file or test, so first trace how sandboxed fetch configures certificate handling. Done should include a confirmed cause and a tested resolution for self-signed local certificates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100