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
fix(plugin-user-data-dir): Use rimraf to delete temp userDataDir #656
Conversation
I also changed the test workflow so we can start it manually without creating a pull request |
thanks @thibaultmthh 👍 |
Still have this issue with rimraf when running multiple instances of puppeteer, and can't catch it with browser.close().catch: "extract-stealth-evasions": "^2.7.0",
|
@zebn are you using |
I am tried using |
Fixes: #581, #601
The current solution was failing sometimes to delete the directory because some files were still used by chrome.
Also this issue was causing the process to freeze
Ex :
Error: EPERM: operation not permitted, unlink 'C:\Users\Moi\AppData\Local\Temp\puppeteer_dev_profile-KKPhhn\BrowserMetrics\BrowserMetrics-62B2BDF7-4CE8.pma
Using rimraf allows better error logging and does not freeze the process.
Link to discord discussion https://discord.com/channels/737009125862408274/737010839172939898/988781077885763614