From cf36a8dd63736bcd8ca9b5f8ea50397c46bb6ee9 Mon Sep 17 00:00:00 2001 From: AMAICDAX Date: Tue, 9 Sep 2025 16:17:42 +0200 Subject: [PATCH] modfi --- controllers/linkedin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controllers/linkedin.js b/controllers/linkedin.js index dcb9136..6c19562 100644 --- a/controllers/linkedin.js +++ b/controllers/linkedin.js @@ -93,7 +93,10 @@ const getUserProfile = async (req, res) => { const scrapeLinkedInProfile = async (profileUrl) => { console.log("Scraping LinkedIn profile:", profileUrl); - const browser = await puppeteer.launch({ headless: false }); // headless: true si tu veux sans UI + const browser = await puppeteer.launch({ + headless: false, + args: ["--no-sandbox", "--disable-setuid-sandbox"], + }); // headless: true si tu veux sans UI const page = await browser.newPage(); console.log("Using email:", email);