stephanb
stephanb12mo ago

Zitadel Errors.AuthRequest.NotFound error on production instance

HI there. Maybe anybody can push me in the right direct even if this is very vague. We have two separate instances in Zitadel, one dev and one prod. We basically replicated the setup and users on the prod system. The only obvious difference between the two is that the prod uses a custom domain (which is verified). Now, when a user logs in on the dev system, everything works as expected. The prod one unfortunately throws this error: "Failed to exchange authorization code for access token. Errors.AuthRequest.NotFound"- The first part is from our system, the second part is the error code we get back when trying to exchange the code for an access token. I double checked he actual URL that is called and it looks reasonable. Has anybody experienced this error also or give us a pointer where to look and what could be causing this (some unintentional misconfig in the instance etc that we overlooked...) please?
2 Replies
stephanb
stephanbOP12mo ago
Fortunately, we fixed this issue. First, we recreated the app in ZITADEL and deployed our web-frontend with the new client ID and secret. Then, we got another error stating that the token is invalid. This hinted to another problem that was caused due to the fact that the web-frontend used the custom domain as authority but the backend APIs where still set to use the default ZITDAL URI.
FFO
FFO12mo ago
Hm this sounds like both system could have conflicted using the same domain. Do both zitadel run on the same root domain?

Did you find this page helpful?