Skip to main content
General·HTTP 409·API, CLI, FE

Credential has open sessions

credential_has_sessions

Open sessions still use this credential.

What this means​

Something is connected to the database with this credential right now, such as an app outside ComputeSphere or a database tool.

How to fix it​

Move what is connected to another credential, then retire this one. To retire it anyway, send force: true: the credential then can't open new connections, and sessions already open keep running until they disconnect.

Retry behavior​

Retry after the sessions have closed.

How it appears in the response​

ComputeSphere returns errors as RFC 7807 Problem Details. The type field is the docs URL for this page — switch on code in your client.

{
"type": "https://docs.computesphere.com/errors/credential_has_sessions",
"title": "Credential has open sessions",
"status": 409,
"code": "credential_has_sessions",
"detail": "Open sessions still use this credential.",
"instance": "/v2/…",
"request_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"trace_id": null
}

The Content-Type header is application/problem+json. On field-level validation errors a non-empty errors[] array also appears, each entry carrying its own docs_url for the offending field.