library · inferred from evidence
undici
The runtime's native fetch implementation used as a replacement for node-fetch@2 to correctly decode Brotli responses.
- Vercel: fetch from serverless function fails with "UND_ERR_CONNECT_TIMEOUT" on Node 20
The failures come from a buggy undici (6.19) bundled inside Node 20's fetch, not from Vercel's network. Confirmed workarounds: 1) downgrade the Vercel project to Node 18.x (multiple reporters confirmed this fixed it; Vercel only allows majo
- authMiddleware rejects valid tokens: node-fetch cannot decode Brotli JWKS (ERR_STREAM_PREMATURE_CLOSE)
Fixed in @descope/node-sdk@2.8.0, which switched to the runtime's native fetch (undici) instead of node-fetch@2 and therefore decodes the Brotli JWKS response correctly; the nextjs-sdk pin was also lifted in PR #1419. Upgrade @descope/node-