fix: audit bugs + better error logging for searcher debugging
Bugs fixed: - form_filler.mjs: add missing await on el.evaluate() in getLabel() - analyze_ats.mjs: check job.apply_type instead of non-existent job.easy_apply - status.mjs: fix typo "that run" → "in that run" - README: add missing lock.mjs to project structure Logging improvements: - job_searcher.mjs: log browser creation, login steps, stack traces on error - linkedin.mjs/wellfound.mjs: catch and log navigation failures per keyword - browser.mjs: descriptive errors for Kernel and CDP connection failures Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -23,7 +23,12 @@ export async function searchWellfound(page, search, { onPage } = {}) {
|
||||
|
||||
for (const keyword of search.keywords) {
|
||||
const url = `${WELLFOUND_BASE}/jobs?q=${encodeURIComponent(keyword)}&remote=true`;
|
||||
await page.goto(url, { waitUntil: 'domcontentloaded', timeout: SEARCH_NAVIGATION_TIMEOUT });
|
||||
try {
|
||||
await page.goto(url, { waitUntil: 'domcontentloaded', timeout: SEARCH_NAVIGATION_TIMEOUT });
|
||||
} catch (e) {
|
||||
console.error(` ⚠️ Navigation failed for "${keyword}": ${e.message}`);
|
||||
continue;
|
||||
}
|
||||
await page.waitForTimeout(SEARCH_LOAD_WAIT);
|
||||
|
||||
// Scroll to bottom repeatedly to trigger infinite scroll
|
||||
|
||||
Reference in New Issue
Block a user