Skip to content
Discussion options

You must be logged in to vote

Hi @olsonnn 👋

Looking at your screenshot — the 404 body is <h1>Not Found</h1>, which is the Django default 404 response, meaning that request did reach the API container, but Django has no route at /api/v1/auth/session.

Here's the catch: /api/v1/auth/session isn't a path the UI code ever calls. The UI uses NextAuth, whose session endpoint is /api/auth/session (without /v1) and is served by the UI container, not the Django API. So the browser is requesting /api/auth/session, and something in your Azure App Gateway is rewriting the path to /api/v1/auth/session before forwarding it to the API backend. The most common cause is a backend HTTP setting on App Gateway with "Override backend path =

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by olsonnn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants