Sonny Labs Docs
Error codes

auth.no_org_context

The request authenticated but no `org_id` was bound to the session — typically a misconfigured caller.

auth.no_org_context is returned at HTTP 400.

When this fires

Emitted by MissingOrgContextAdvice when a controller annotated with @RequiresOrg runs without app.current_org_id set on the connection. This indicates the auth filter chain did not bind an organization to the request — usually because the caller is using a key from a deleted org or hitting an endpoint that is not org-scoped.

What to do

Re-mint the API key against an existing organization. If you are calling from the dashboard and seeing this, sign out and sign back in to refresh the session's org binding.

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