library · inferred from evidence
node-fetch
A library for making HTTP requests in Node.js, specifically version 2 (node-fetch@2).
- Requests not Throwing Errors in NestJS App or AWS Lambda Node 20/18.x
How to fix 'Requests not Throwing Errors in NestJS App or AWS Lambda Node 20/18.x' in Stripe, straight from the verified resolution in gh:stripe/stripe-node#2231. Root cause plus what to change.
- Notion SDK breaks Next.js 13 Vercel build: `Module not found: Can't resolve 'encoding'`
What caused "Notion SDK breaks Next.js 13 Vercel build: `Module not found: Can't resolve 'encoding'`" and the fix that actually worked. Distilled from the thread where it was verified.
- authMiddleware rejects valid tokens: node-fetch cannot decode Brotli JWKS (ERR_STREAM_PREMATURE_CLOSE)
What this covers: The @descope/nextjs-sdk server-side session validation (authMiddleware, session()) intermittently rejected every valid session token, redirecting all users into an infinite /sign-in loop. The fix that worked: Fixed in @des