Ticket: Node App Prevents Image Preview Due to Cert Trust Issue

@joshjanszen Just created a ticket
Question: I'm using a internal CA and the node app does not trust the cert. The only issue is when uploading images the preview doesn't display, unsure if there are other issues due to this or not.
Attempted: I've tried all the typical nodejs commands with the CA but none work. I get this error in the logs ⨯ TypeError: fetch failed at node:internal/deps/undici/undici:13178:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async fetchExternalImage (/app/node_modules/next/dist/server/image-optimizer.js:600:17) at async NextNodeServer.imageOptimizer (/app/node_modules/next/dist/server/next-server.js:654:48) at async cacheEntry.imageResponseCache.get.incrementalCache (/app/node_modules/next/dist/server/next-server.js:182:65) at async /app/node_modules/next/dist/server/response-cache/index.js:90:36 at async /app/node_modules/next/dist/lib/batcher.js:45:32 { [cause]: Error: unable to get local issuer certificate at TLSSocket.onConnectSecure (node:_tls_wrap:1685:34) at TLSSocket.emit (node:events:519:28) at TLSSocket._finishInit (node:_tls_wrap:1085:8) at ssl.onhandshakedone (node:_tls_wrap:871:12) at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
Working On: initial deployment
Using Postiz On: docker-compose
Take it from here @Postiz
3 Replies
m4rk
m4rk7d ago
what are you using for storage ?? Local ?? If so try with r2 storage
joshjanszen
joshjanszen7d ago
local, was hoping to keep everything local. I believe it has something to do with next.js not trusting the cert provided to npm/node
Support
SupportOP6d ago
@Postiz please help @joshjanszen

Did you find this page helpful?