Unable to get local issuer certificate

hi again πŸ™‚ I'm getting this error workerd/jsg/util.c++:276: error: e = kj/compat/tls.c++:215: failed: TLS peer's certificate is not trusted; reason = unable to get local issuer certificate it only appears when I use service bindings like this:
serviceBindings[bindingName] = req => {
const smf = new Miniflare(options)
return smf.dispatchFetch(req)
}
serviceBindings[bindingName] = req => {
const smf = new Miniflare(options)
return smf.dispatchFetch(req)
}
5 Replies
MrBBot
MrBBotβ€’2y ago
Hey! πŸ‘‹ What version of Miniflare, Node and operating system are you using? What is the script in options doing? Are you making any outbound fetch calls to HTTPS services?
matt // unweb
matt // unwebOPβ€’2y ago
I think I do have an existing HTTPS outbound call to honeycomb for tracing spans, will see if I can disable that during dev. thanks!
MrBBot
MrBBotβ€’2y ago
Any chance you’ve got Cloudflare WARP enabled too?
matt // unweb
matt // unwebOPβ€’2y ago
No, I've not heard of WARP (but looks useful, thanks!) It was the instrumentation library trying to send spans to the HTTPS honeycomb collector, so I've disabled it and the errors no longer appear πŸ™‚
MrBBot
MrBBotβ€’2y ago
Hmm, good that fixes things, but that’s not ideal. What operating system including version are you on again?
Want results from more Discord servers?
Add your server