Next.js Discord

Discord Forum

Cause: Error: unable to verify the first certificate

Unanswered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
Since yesterday i am unable to read and set data to the Vercel KV. For some reason i get the following error in the console.

TypeError: fetch failed
at async eval (./lib/dataFetching.ts:50:23)
digest: "1475247114"
Cause: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1550:34)
at TLSSocket.emit (node:events:514:28)
at TLSSocket.emit (node:domain:489:12)
at TLSSocket._finishInit (node:_tls_wrap:967:8)
at ssl.onhandshakedone (node:_tls_wrap:743:12)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
}

This is what the website says

Error: fetch failed
let accessToken = await kv.get(site);

Can someone help me out? I updated to next 14.2.1 last week, thought it was maybe the issue, but downgrading back to 14.0 does not resolve the issue.

0 Replies