[Keycloak] TypeError: fetch failed #11915
-
Provider typeKeycloak Environment
Reproduction URLhttps://github.com/JHansen2000/KeycloakAuth Describe the issue
I am trying to implement a very basic Keycloak authentication flow to my app, but get the following error when attempting to sign in. Keycloak logs show no communication attempt from the application (which is obvious given the error, below).
How to reproduce
Expected behaviorThis should navigate to the keycloak login endpoint. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@balazsorban44 Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
@billgloff I was able to get my setup working, notes below:
fetch failed
error seems to be a catch-all for a large variety of errors. I received the same error for issues stemming from both Keycloak misconfiguration and NextAuth failures.auth.ts
helped a lot.