CheshireCaat / browser-with-fingerprints

Anonymous automation with fingerprint replacement technology.
MIT License
111 stars 19 forks source link

[Error: ENOENT: no such file or directory, stat lock file #29

Closed dimaslanjaka closed 1 day ago

dimaslanjaka commented 4 days ago

I just run like as usual. But sometimes got this error

Uncaught Exception: [Error: ENOENT: no such file or directory, stat 'D:\Repositories\dl-traffic-python\data\run\FingerprintPluginV10\e3274\browser.17\s\xbK0UfzU.ini.lock'] {
  errno: -4058,
  code: 'ECOMPROMISED',
  syscall: 'stat',
  path: 'D:\\Repositories\\dl-traffic-python\\data\\run\\FingerprintPluginV10\\e3274\\browser.17\\s\\xbK0UfzU.ini.lock'
} undefined

i catch this error by using below codes

process.on("uncaughtException", (err) => {
    if (!(err instanceof Error)) {
      // If it's not an instance of Error, create one manually to preserve the context.
      err = new Error(String(err));
    }
    logError("Uncaught Exception:", err, err.track);
    // Send some notification about the error
    process.exit(1);
  });
CheshireCaat commented 1 day ago

Compromised lock will be ignored and will stop throwing errors - instead, information output via debug has been added so far.

The fix will be available in the new version, if the problem still remains, please let me know.