Skip to content

Stealth Chromium that passes every bot detection test. Drop-in Playwright replacement with source-level fingerprint patches. 50+ tests passed.

fix(license): explain held seats in the session-limit error

CloakHQ29ef0639a3ea
diff --git a/cloakbrowser/license.py b/cloakbrowser/license.py
index e21d53c..0c9f414 100644
--- a/cloakbrowser/license.py
+++ b/cloakbrowser/license.py
@@ -102,7 +102,10 @@ class CloakBrowserLicenseError(RuntimeError):
_LICENSE_EXIT_MESSAGES = {
76: (
"CloakBrowser Pro: session limit reached for your plan. Close another "
- "running session or upgrade your plan."
+ "running session or upgrade your plan. Always close with "
+ "browser.close() (e.g. in a finally block). A session that crashed or "
+ "was killed frees its seat automatically within 4 min (free/trial/solo), "
+ "15 min (team) or 30 min (business/scale)."
),
77: (
"CloakBrowser Pro: license key is invalid, expired, or missing. Check "
diff --git a/dotnet/src/CloakBrowser/License.cs b/dotnet/src/CloakBrowser/License.cs
index 02d165e..b6b56b2 100644
--- a/dotnet/src/CloakBrowser/License.cs
+++ b/dotnet/src/CloakBrowser/License.cs
@@ -106,7 +106,7 @@ public static class License
// LICENSE_EXIT_MESSAGES.
private static readonly Dictionary<int, string> LicenseExitMessages = new()
{
- [76] = "CloakBrowser Pro: session limit reached for your plan. Close another running session or upgrade your plan.",
+ [76] = "CloakBrowser Pro: session limit reached for your plan. Close another running session or upgrade your plan. Always close with await browser.CloseAsync() (e.g. in a finally block). A session that crashed or was killed frees its seat automatically within 4 min (free/trial/solo), 15 min (team) or 30 min (business/scale).",
[77] = "CloakBrowser Pro: license key is invalid, expired, or missing. Check CLOAKBROWSER_LICENSE_KEY.",
[78] = "CloakBrowser Pro: couldn't verify your license (license server unreachable or a connection problem).",
[79] = "CloakBrowser Pro: local configuration problem, ~/.cloakbrowser is not writable.",
diff --git a/js/src/license.ts b/js/src/license.ts
index 53be1cf..fc1d6f4 100644
--- a/js/src/license.ts
+++ b/js/src/license.ts
@@ -72,7 +72,7 @@ export class CloakBrowserLicenseError extends Error {
// emits only the number (no diagnostic strings, by design); the message text
// lives here in the wrapper. Mirrors Python _LICENSE_EXIT_MESSAGES.
const LICENSE_EXIT_MESSAGES: Record<number, string> = {
- 76: "CloakBrowser Pro: session limit reached for your plan. Close another running session or upgrade your plan.",
+ 76: "CloakBrowser Pro: session limit reached for your plan. Close another running session or upgrade your plan. Always close with await browser.close() (e.g. in a finally block). A session that crashed or was killed frees its seat automatically within 4 min (free/trial/solo), 15 min (team) or 30 min (business/scale).",
77: "CloakBrowser Pro: license key is invalid, expired, or missing. Check CLOAKBROWSER_LICENSE_KEY.",
78: "CloakBrowser Pro: couldn't verify your license (license server unreachable or a connection problem).",
79: "CloakBrowser Pro: local configuration problem, ~/.cloakbrowser is not writable.",