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);