~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix: Add strategic logging to debug authentication navigation issues
LearningCircuit440ad86310f2
diff --git a/tests/ui_tests/auth_helper.js b/tests/ui_tests/auth_helper.jsindex bed3f61ac2..b2e1776bfd 100644--- a/tests/ui_tests/auth_helper.js+++ b/tests/ui_tests/auth_helper.js@@ -150,25 +150,47 @@ class AuthHelper {// Listen to page errorsthis.page.on('pageerror', error => console.log(' Page error:', error.message));- // Listen to response events+ // Listen to response events to track redirectsthis.page.on('response', response => {if (response.url().includes('/auth/login') && response.request().method() === 'POST') {console.log(` Login POST response: ${response.status()} ${response.statusText()}`);++ // Check for Location header in redirect+ const headers = response.headers();+ if (headers['location']) {+ console.log(` Redirect location: ${headers['location']}`);+ }}});+ // Track the initial URL+ const initialUrl = this.page.url();+ console.log(` Initial URL before submit: ${initialUrl}`);+try {- // Click and handle potential redirect+ // Click submit and wait for either navigation or timeoutconst navigationPromise = this.page.waitForNavigation({- waitUntil: 'domcontentloaded', // Use domcontentloaded instead of networkidle2 for faster response- timeout: 90000 // 90 second timeout for slow database creation in CI+ waitUntil: 'domcontentloaded',+ timeout: 90000});await this.page.click('button[type="submit"]');+ console.log(' Submit button clicked');++ // Check URL periodically during navigation wait+ const checkInterval = setInterval(() => {+ const currentUrl = this.page.url();+ if (currentUrl !== initialUrl) {+ console.log(` URL changed to: ${currentUrl}`);+ clearInterval(checkInterval);+ }+ }, 5000); // Check every 5 seconds- // Wait for navigation with better error handlingawait navigationPromise;+ clearInterval(checkInterval);+console.log(' Navigation completed');+ console.log(` Final URL: ${this.page.url()}`);// Give the page a moment to settle after navigationawait new Promise(resolve => setTimeout(resolve, 1000));@@ -176,6 +198,11 @@ class AuthHelper {console.log(` Navigation error: ${navError.message}`);console.log(` Current URL after error: ${this.page.url()}`);+ // Check if we actually did navigate despite the error+ if (this.page.url() !== initialUrl) {+ console.log(' Note: URL did change even though navigation timed out');+ }+// Check page content on errorconst pageTitle = await this.page.title();console.log(` Page title: ${pageTitle}`);@@ -192,6 +219,13 @@ class AuthHelper {const finalUrl = this.page.url();console.log(` Final URL: ${finalUrl}`);+ // Also check for session cookies as an indicator of successful login+ const cookies = await this.page.cookies();+ const sessionCookie = cookies.find(c => c.name === 'session');+ if (sessionCookie) {+ console.log(' Session cookie found - login likely successful');+ }+if (finalUrl.includes('/auth/login')) {// Still on login page - check for errorconst error = await this.page.$('.alert-danger, .error-message, .alert');