vercel / vercel/workflow

Unable to fetch from local service with self-signed certificate

Open
#685 0 comments 3 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.