Skip to content

Error Codes

CodeMessageFix
AUTH001Invalid credentialsCheck username/password
AUTH002Token expiredRefresh or re-login
AUTH003Invalid tokenVerify token format
AUTH004Insufficient permissionsCheck user role
AUTH005API key invalidVerify API key
CodeMessageFix
SESSION001Session not foundSession ID invalid/expired
SESSION002Session timeoutRecreate session
SESSION003Max sessions reachedClose unused sessions
SESSION004Session lockedWait or force close
SESSION005Invalid session stateRestart session
CodeMessageFix
BROWSER001Failed to launchCheck Chrome/Chromium installed
BROWSER002Page crashRestart session
BROWSER003Navigation timeoutIncrease timeout or check URL
BROWSER004Element not foundVerify selector exists
BROWSER005Script execution failedCheck script syntax
CodeMessageFix
NET001Connection refusedCheck server running
NET002Request timeoutIncrease timeout
NET003DNS resolution failedVerify domain
NET004SSL certificate errorCheck cert or use ignoreHTTPSErrors
NET005Proxy errorVerify proxy settings
CodeMessageFix
VAL001Missing required fieldCheck request body
VAL002Invalid field typeVerify data types
VAL003Value out of rangeCheck min/max values
VAL004Invalid URL formatUse valid URL
VAL005Invalid selectorCheck CSS selector syntax
// Retry on timeout
try {
await page.goto(url, { timeout: 60000 });
} catch (err) {
if (err.message.includes('timeout')) {
await page.goto(url, { timeout: 120000 });
}
}
// Handle navigation errors
await page.goto(url, { waitUntil: 'domcontentloaded' });
// Element not found
await page.waitForSelector(selector, { visible: true });
// Session cleanup
process.on('SIGTERM', async () => {
await closeAllSessions();
});