Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] puppeteer-extra-plugin:user-data-dir.onDisconnected hangs when trying to delete a profile. #581

Closed
andrewcartwright1 opened this issue Oct 21, 2021 · 0 comments · Fixed by #656
Labels
issue: bug report A bug has been reported needs triage

Comments

@andrewcartwright1
Copy link

andrewcartwright1 commented Oct 21, 2021

Describe the bug

I have a project where I am running 3 browsers each with up to 3 tabs open, I have debugged that each browser has its own chrome profile, but when the browser is closed the next part of the project never runs due to it hanging trying to delete the profile.

Raised previously here: #559

I have mitigated the issue so I can continue to use stealth with the advice offered here: #421 (comment)

Code Snippet

It is this part where it hangs trying to delete the profile.

      } else {
        // Deprecated since node >= v14.14.0
        console.log('deleting profile');
        fs.rmdirSync(this._userDataDir, {
          recursive: true,
          maxRetries: 3
        })
        console.log('deleted profile');
      }

Versions

  System:
    OS: Windows 10 10.0.22000
    CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
    Memory: 5.78 GB / 15.79 GB
  Binaries:
    Node: 16.11.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 8.0.0 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    puppeteer: ^10.4.0 => 10.4.0
    puppeteer-extra: ^3.2.3 => 3.2.3
    puppeteer-extra-plugin-stealth: ^2.9.0 => 2.9.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug report A bug has been reported needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant