Noam Loewenstern
09/02/2025, 9:06 AM@descope/node-sdk package, for backend management functions.
When developing locally, (hot reload using vite then everything works just fine.
But after "production build" in dockerfile deploy and run via docker-compose, then I get this error:
(calling simple client_.management.tenant.searchAll_() call
{
error: {
errorCode: 'E111008',
errorDescription: 'Management key region does not match expected region'
}
}
region of management api key is US
And I can't enable management key region to allow all...Rahul Rijhwani
09/02/2025, 9:15 AMbaseUrl or env vars differ.
Can you confirm env vars of local and production's.
US's baseUrl is https://api.descope.comNoam Loewenstern
09/02/2025, 9:36 AMhttps://api.descope.com as the baseUrl when initializing the client..
DescopeClient({
baseUrl: 'https://api.descope.com/,
projectId: env.DESCOPECONFIG_PROJECTID,
managementKey: env.DESCOPECONFIG_MANAGEMENTAPIKEY,
})
local dev works, even local build and serve works
but when running inside docker compose, then doesn't...Rahul Rijhwani
09/02/2025, 10:08 AM