TLS error on wrangler dev after update to 3.0.0
# workers-help
s
After updating to wrangler 3, I am getting this error
Copy code
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
stack: 7ff6229c8a6f 7ff622a0c9dd 0 0 0 0 0 0 0 0 0 0 0 0 7ff6229d6234; sentryErrorContext = jsgInternalError
Even when i explicitly pass the --local-protocol http
Copy code
npx wrangler dev src/index.ts --local-protocol http
This is a blocker for me as any request is now resulting in this error
Copy code
Error: Network connection lost. {                                                                              
  stack: Error: Network connection lost.,                                                                      
  message: Network connection lost.                                                                            
}
c
If you are using windows then this is a known issue https://github.com/cloudflare/workers-sdk/issues/3264
s
Is there a temp fix or do i have to downgrade wrangler?
Alright got it, temp fix is mentioned inside
c
If you want to use local mode then you need to downgrade. Otherwise you can use the remote mode