https://supertokens.com/ logo
404 on sign in
p

petrgazarov

04/24/2023, 6:42 AM
Trying to view the dashboard on localhost, but getting a 404 error on login. I've already created a user following instructions here: https://supertokens.com/docs/thirdparty/pre-built-ui/setup/dashboard.

https://cdn.discordapp.com/attachments/644849840475602944/1099948465573859338/Screenshot_4_23_23__11_39_PM.png

https://cdn.discordapp.com/attachments/644849840475602944/1099948465800368149/Screenshot_4_23_23__11_40_PM.png

https://cdn.discordapp.com/attachments/644849840475602944/1099948466039431178/Screenshot_4_23_23__11_41_PM.png

r

rp

04/24/2023, 7:26 AM
hey @petrgazarov
@nkshah2 can help here
n

nkshah2

04/24/2023, 7:27 AM
Hi what backend SDK and version are you using?
p

petrgazarov

04/24/2023, 7:31 AM
FastAPI, latest version
supertokens-python
version 0.12.8
I have a subapp mounted on /api path, if that somehow messes with the dashboard routes.
app.mount("/api", subapps.web_app) # subapp where supertokens middleware is used
r

rp

04/24/2023, 7:58 AM
ah right.. so you need to add
/api
to the apiGatewayPath property on the backend's appInfo
but i wonder how
/auth/dashboard
didn't give a 404..
since that's also served via the same middleware
p

petrgazarov

04/24/2023, 7:59 AM
yeah weird, the dashboard login screen loads fine
r

rp

04/24/2023, 8:00 AM
can you try adding the api_gateway_path and see if that solves the issue?
p

petrgazarov

04/24/2023, 8:00 AM
Actually I have requested /api/auth/dashboard path in the browser (I forgot)
/auth/dashboard doesn't work as expected
n

nkshah2

04/24/2023, 8:01 AM
Ah yeah thats why the UI loads fine then
This should help
p

petrgazarov

04/24/2023, 8:05 AM
api_gateway_path="/api" worked great 👍
Thanks @rp @nkshah2