Sonny Labs Docs
Error codes

org.not_provisioned

The principal is authenticated but no `auth.organizations` row has been provisioned for their org yet.

org.not_provisioned is returned at HTTP 409.

When this fires

Emitted by OrgNotProvisionedAdvice when WorkOS asserts an org id that has no matching row in the local database. Concretely: a brand-new organisation that finished WorkOS sign-in but whose first authenticated request raced past the provisioning lazy-init in AuthenticationFilter.

What to do

Retry the request. Provisioning is idempotent and the second call will see the row. If retries keep returning this code, the dashboard's onboarding flow is broken — file an issue with the request_id.

See also

  • SDK reference — the Python and TypeScript SDKs raise typed exceptions for codes in this namespace.
  • Error code index — every code the runtime can return.

On this page