diff --git a/backend/src/services/scraper.ts b/backend/src/services/scraper.ts index e766695..2c0c60c 100644 --- a/backend/src/services/scraper.ts +++ b/backend/src/services/scraper.ts @@ -253,8 +253,8 @@ function extractGenericCssCandidates($: CheerioAPI): PriceCandidate[] { async function getRemoteBrowserWSEndpoint(): Promise { const remoteUrl = process.env.REMOTE_BROWSER_URL || 'http://browser-node.openclaw.svc.cluster.local:9222'; try { - const response = await axios.get(`${remoteUrl}/json/version`, { timeout: 5000 }); - const data = JSON.parse(response.data); + const response = await axios.get>(`${remoteUrl}/json/version`, { timeout: 5000 }); + const data = response.data; // axios auto-parses JSON const wsUrl = data.webSocketDebuggerUrl; if (wsUrl) { // Replace localhost with the actual remote host