Commits
Click on a commit to change the comparison rangefix: Improve TLS error messages for fetch() in local development
When fetch() fails due to TLS certificate errors (e.g., self-signed certs,
untrusted CAs), workerd now returns actionable error messages instead of
opaque "internal error; reference = ..." responses.
The improved errors:
- Explain that the TLS certificate could not be verified
- Suggest setting NODE_EXTRA_CA_CERTS for local development scenarios
- Handle specific cases: untrusted certs, missing certs, connection failures
This helps developers diagnose and fix certificate issues when making HTTPS
requests during local development, particularly when connecting to servers
with self-signed certificates.
Fixes: https://github.com/cloudflare/workers-sdk/issues/93564 days ago
by irvinebroque