KindeK
Kinde9mo ago
9 replies
Woet

URGENT - Next.js - crashing middleware because JWKS can't be fetch

Can somebody please help?

I had upgraded to @kinde-oss/kinde-auth-nextjs@2.6.2, but after that, I've started experiencing errors when fetching the JWKS.

This happens in the middleware and thus my application crashes.

I've tried rolling back to a previous version on prod, but so far the crash is still occuring.

These are the error details:

Attempt 1 - Error fetching JWKS: DOMException [AbortError]: This operation was aborted
    at node:internal/deps/undici/undici:13502:13
    at async Zu.t.fetch (/opt/edge/handler.js:235:5825)
    at async Uc (user-source.js:110:66880)
    at async Gs (user-source.js:110:67243)
    at async qc (user-source.js:110:69350)
    at async Ws (user-source.js:110:69673)
    at async Yo (user-source.js:110:82909)
    at async Vl (user-source.js:110:342086)
    at async i (user-source.js:110:368035)
    at async handler (user-source.js:124:4328)
Attempt 2 - Error fetching JWKS: DOMException [AbortError]: This operation was aborted
    at node:internal/deps/undici/undici:13502:13
    at async Zu.t.fetch (/opt/edge/handler.js:235:5825)
    at async Uc (user-source.js:110:66880)
    at async Gs (user-source.js:110:67243)
    at async qc (user-source.js:110:69350)
    at async Ws (user-source.js:110:69673)
    at async Yo (user-source.js:110:82909)
    at async Vl (user-source.js:110:342086)
    at async i (user-source.js:110:368035)
    at async handler (user-source.js:124:4328)
Screenshot_2025-05-09_180447.png
Screenshot_2025-05-09_180620.png
Was this page helpful?