#Building step causes Node error: CERT_HAS_EXPIRED

4 messages · Page 1 of 1 (latest)

brittle totem
#

Hi, I have a little Astro site that shows the changelog of the Astro and Starlight packages and recently, the builds are failing in Netlify and locally as well, and I get this error, which confuses me because I wasn't even aware that the website uses a certificate somewhere...

 generating optimized images
node:internal/deps/undici/undici:15445
      Error.captureStackTrace(err);
            ^

TypeError: fetch failed
    at node:internal/deps/undici/undici:15445:13
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async loadRemoteImage (file:///Users/trueberryless/repos/trueberryless-org/astro-changelog/node_modules/.pnpm/astro@5.14.4_@types+node@24.7.2_rollup@4.52.4_sass@1.93.2_typescript@5.8.3/node_modules/astro/dist/assets/build/remote.js:4:15)
    [...] // cutting to fit into Discord message limit
    at async generateImagesForPath (file:///Users/trueberryless/repos/trueberryless-org/astro-changelog/node_modules/.pnpm/astro@5.14.4_@types+node@24.7.2_rollup@4.52.4_sass@1.93.2_typescript@5.8.3/node_modules/astro/dist/assets/build/generate.js:53:5)
    at async file:///Users/trueberryless/repos/trueberryless-org/astro-changelog/node_modules/.pnpm/p-queue@8.1.1/node_modules/p-queue/dist/index.js:230:36 {
  [cause]: Error: certificate has expired
      at TLSSocket.onConnectSecure (node:_tls_wrap:1631:34)
      at TLSSocket.emit (node:events:508:28)
      at TLSSocket._finishInit (node:_tls_wrap:1077:8)
      at ssl.onhandshakedone (node:_tls_wrap:863:12) {
    code: 'CERT_HAS_EXPIRED'
  }
}

Has someone stumbled upon this issue as well? It happens roughly since Sep 27...

Astro                    v5.14.4
Vite                     v6.3.6
Node                     v24.7.0
System                   macOS (arm64)
Package Manager          pnpm
Output                   static
Adapter                  none
Integrations             none
#
{
  "name": "automatic-starlog",
  "type": "module",
  "version": "0.0.1",
  "scripts": {
    "dev": "astro dev",
    "build": "astro build",
    "preview": "astro preview",
    "astro": "astro"
  },
  "dependencies": {
    "@astrojs/markdown-remark": "^6.3.8",
    "@studiocms/markdown-remark": "^1.2.0",
    "astro": "^5.14.4",
    "astro-expressive-code": "^0.41.3",
    "astro-loader-github-releases": "^2.0.2",
    "rehype-expressive-code": "^0.41.3",
    "rehype-parse": "^9.0.1",
    "rehype-stringify": "^10.0.1",
    "sass": "^1.93.2",
    "semver": "^7.7.3",
    "sharp": "^0.34.4",
    "unified": "^11.0.5",
    "unist-util-visit": "^5.0.0"
  },
  "devDependencies": {
    "@types/semver": "^7.7.1"
  }
}
crystal flame
brittle totem
#

Thanks Adam, I'm gonna take a look at what that could be. Will be interesting, if this is some URL from some changelog files or another one from my website...