invalid_configuration
SDK configuration errors — missing env vars and OAuth settings
HTTP status: N/A (SDK initialization)
Category: SDK configuration
What this error means
The Wocha SDK was initialised with missing or invalid configuration. This typically occurs at client construction time or when required environment variables are absent in production.
Common scenarios: missing tenant/baseUrl, missing apiKey, invalid redirect URI in OAuth apps, or framework adapter env vars not set.
Common causes
WochaClientcreated withouttenant,baseUrl, orapiKeyWOCHA_TENANT/WOCHA_API_KEYnot set in deployment environment- OAuth client ID or issuer URL mismatch between app and Console
- Next.js: missing
WOCHA_CLIENT_SECRETfor confidential BFF client - Redirect URI in code does not match Console OAuth application settings
How to fix it
- Run
wocha doctorfrom@wocha/clito validate local configuration. - Copy
.env.exampleto.env.localand fill in all required variables. - In Console, verify OAuth application redirect URIs match your app exactly (including trailing slashes).
- For production, inject secrets via your platform's secret manager — never commit
.envfiles. - Use keyless dev mode locally (
wocha dev) to auto-provision a development tenant.