Trying to view the dashboard on localhost, but get...
# support-questions-legacy
p
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.
r
hey @petrgazarov
@nkshah2 can help here
n
Hi what backend SDK and version are you using?
p
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.
Copy code
app.mount("/api", subapps.web_app) # subapp where supertokens middleware is used
r
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
yeah weird, the dashboard login screen loads fine
r
can you try adding the api_gateway_path and see if that solves the issue?
p
Actually I have requested /api/auth/dashboard path in the browser (I forgot)
/auth/dashboard doesn't work as expected
n
Ah yeah thats why the UI loads fine then
This should help
p
api_gateway_path="/api" worked great 👍
Thanks @rp_st @nkshah2
14 Views