Node process stopped

Поддержка
  • Вот так выглядит мой код для поиска неиспользованных профилей:

    const fs = require("fs");

    const listOfUsedProfiles = fs.readFileSync([[PROFILES_LINK_DIRECTORY]] + "/used_profiles.txt", { encoding: "utf8", flag: "r" });

    const listOfProfiles = fs.readdirSync([[PROFILES_LINK_DIRECTORY]]);
    let randomProfile = listOfProfiles[Math.floor(Math.random() * listOfProfiles.length)];

    while (randomProfile.split(".").includes("txt") || listOfUsedProfiles.includes(randomProfile)) {
    console.log(randomProfile);
    randomProfile = listOfProfiles[Math.floor(Math.random() * listOfProfiles.length)];
    }

    [[RANDOM_PROFILE_FOLDER]] = randomProfile;

    раньше он работал долгое время и примерно неделю назад перестал, что может быть не так?

  • @quod said in Node process stopped:

    раньше он работал долгое время и примерно неделю назад перестал, что может быть не так?

    Читайте файл node_log.txt

  • @Fox, Таймаут во время выполнения функции на встроенном языке

  • @quod said in Node process stopped:

    @Fox, Таймаут во время выполнения функции на встроенном языке

    Перечитайте моё сообщение

  • @Fox, FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

  • 0 Votes
    2 Posts
    349 Views
  • Excel node js

    Поддержка
    0 Votes
    3 Posts
    387 Views
  • 0 Votes
    2 Posts
    431 Views
  • 0 Votes
    4 Posts
    568 Views
  • 0 Votes
    20 Posts
    2558 Views