puppeteer-with-fingerprints: [Bug]: syntaxError: .. is not valid JSON | The engine no longer downloads or starts

Hello, Since today, on several of my projects, the plugin no longer works and I get a json error message when I try to launch a browser. And I’ve tried to start from scratch in an empty project with the default test code and the same problem with paid and free versions, I’ve also tried updating the plugin but no download , and always Json error.

Everything has been working for several weeks and without changing anything I’ve had this problem since this morning, thank you for your help.

Example code :

const { plugin } = require("puppeteer-with-fingerprints");

plugin.setServiceKey("");

(async () => {
  // Get a fingerprint from the server:
  const fingerprint = await plugin.fetch({
    tags: ["Microsoft Windows", "Chrome"],
  });

  // Apply fingerprint:
  plugin.useFingerprint(fingerprint);

  // Launch the browser instance:
  const browser = await plugin.launch({
    headless: false, // Garde l'interface visible
    args: ["--lang=fr-FR,fr", "--ignore-certificate-errors"], // Ignorer les erreurs de certificat
    timeout: 60000, // Temps d'attente maximal pour le lancement du navigateur
  });

  // The rest of the code is the same as for a standard `puppeteer` library:
  const page = await browser.newPage();
  await page.goto("https://google.com");
})();

Terminal output :

undefined:1
<himl>
syntaxError: Unexpected token '<, "«html> <h"... is not valid JSON
at JSON-parse (<anonymous»)
at IncomingMessage.<anonymous> (C: \xxxx\projet\node _modules \bas-remote-node\src\services\utils.js:15:22)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node: internal/streams/readable:1696:12)
at process-processTicksAndRejections (node: internal/process/task_queues:82:21)

System

  • Plugin version [1.4.4]
  • Puppeteer [23.3.0]
  • Node version [20.17.0]

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (6 by maintainers)

Most upvoted comments

Thanks to the dev for the quick response !!

In the end what worked was:

npm uninstall puppeteer-with-fingerprints

npm i puppeteer-with-fingerprints

The problem with the servers has been resolved at the moment, the scripts are available again, but I still recommend updating to the latest version so as not to depend on it.