Hi, guys! I am having issues with nest js and su...
# support-questions-legacy
s
Hi, guys! I am having issues with nest js and supertokens integration. When I am trying to signup using url
/api/auth/signup
- I receive error:
Copy code
{
  "statusCode": 500,
  "message": "Internal server error"
}
And in the logs:
[Nest] 37381  - 09/28/2023, 10:52:11 AM   ERROR [ExceptionsHandler] SuperTokens core threw an error for a POST request to path: '/auth/recipe/signup' with status code: 400 and message: AppId or tenantId not found => Tenant with the following connectionURIDomain, appId and tenantId combination not found: (st-dev-81659d60-5729-11ee-8ee2-61be51f08b14.aws.supertokens.io, public, auth)
Does anyone know what is the issue. Btw I double checked the setup, everything seems like okay... Also, I don't need multitenant login, it's single.
r
hey @sx_weax
somehow, the tenant being queryed for is
auth
.whats the apiDomain and apiBasePath you have set on the frontend and backend?
s
Copy code
apiDomain: 'http://localhost:3001',
websiteDomain: 'http://localhost:3000',
apiBasePath: '/api',
r
right. This is on the frontend and backend?
cause i see that therer is a
/auth
in the request too.
s
it's only on backend for now
I am querying it from api client
http://localhost:3001/api/auth/signup
r
right. So you need to set the apiBasePath
/api/auth
s
ah, nice, it works!!! Thank you!
5 Views