Skip to content

Cypress can't connect to local HTTPS in 7.4.4 #1907

Description

@steveworkman

Hi, we we ran into this problem today where cypress in CI could no longer connect to a local HTTPS vite app with the NODE_TLS_REJECT_UNAUTHORIZED: 0 environment variable. We are running Node 24.20.0

Note, downgrading to 7.4.3 fixed this issue, so the root cause it likely to be the fix for #1869

Run cypress-io/github-action@v7
  with:
    start: npm run preview
    wait-on: https://localhost:8080/root/user/settings/
    wait-on-timeout: 180
    record: false
    browser: chrome
    component: false
    package-manager-cache: true
    publish-summary: true
  env:
    GITHUB_TOKEN: ***
    NODE_TLS_REJECT_UNAUTHORIZED: 0
    SPLIT: 3
    SPLIT_INDEX: 0
(node:2151) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
.....
  ➜  Local:   https://localhost:8080/root/user/settings/
https://localhost:8080/root/user/settings/ timed out after 21 retries, elapsed 223214ms, limit 210000ms
Error: self-signed certificate; if the root CA is installed locally, try running Node.js with --use-system-ca

Activity

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

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions