Comments (3)
sorry for my confusion i was incorrectly stating the data directory.
const response = await connect({
headless: 'auto',
args: [
`--proxy-server=${proxyURL}`,
],
customConfig: {
userDataDir: 'myUserDataDir',
},
skipTarget: [],
fingerprint: true,
turnstile: true,
connectOption: {
userDataDir: 'myUserDataDir',
},
tf: false
});
i was sending the userData dir in the connect option which i figured out didnt actually do anything, the correct way was to define it in the customConfig option.
One more issue which i noticed is if i define a new userDataDirectory which doesnt exist, the puppeter real throws a error
Error: ENOENT: no such file or directory, open 'myUserDataDir2/chrome-out.log'
I fixed it by manually creating a directory by using the original puppeter and let it run once.
Then revert back to puppeter-real browser and use it
from puppeteer-real-browser.
Hello, if you import the library with await import every time you start a project, it will not be related to each other. Soon the project will be transferred to the class structure, this problem will not be left, but until then you can try importing every time you will use it. I can support you if you can add your code. No one has reported having this kind of problem before.
from puppeteer-real-browser.
sorry for my confusion i was incorrectly stating the data directory.
const response = await connect({ headless: 'auto', args: [ `--proxy-server=${proxyURL}`, ], customConfig: { userDataDir: 'myUserDataDir', }, skipTarget: [], fingerprint: true, turnstile: true, connectOption: { userDataDir: 'myUserDataDir', }, tf: false });
i was sending the userData dir in the connect option which i figured out didnt actually do anything, the correct way was to define it in the customConfig option.
One more issue which i noticed is if i define a new userDataDirectory which doesnt exist, the puppeter real throws a error
Error: ENOENT: no such file or directory, open 'myUserDataDir2/chrome-out.log'
I fixed it by manually creating a directory by using the original puppeter and let it run once. Then revert back to puppeter-real browser and use it
I am glad that the problem is solved. Since puppeteer is run with .connect, some of its properties may be incorrect. I am working on many bugs, I will try to fix them, thanks for your contribution.
from puppeteer-real-browser.
Related Issues (20)
- I cannot open browser with my existing profile HOT 2
- Concurrency mode HOT 3
- Async call not wait puppeteer.type method HOT 2
- browserWSEndpoint issue HOT 1
- Context connection errors HOT 14
- Can not to bypass Cloudflare WAF while headless true HOT 3
- Using existing profile HOT 3
- recaptcha plugin not working in new version of puppeteer-real-browser? HOT 1
- Turnstile bypass does not work on Docker HOT 4
- Can not launch real browser with Ubuntu HOT 5
- Test of Cloudflare Turnstile fails (due to 2captcha sitekey being disabled) HOT 1
- quick question: "--disable-features=IsolateOrigins,site-per-process" HOT 1
- How to add userDataDir? HOT 1
- Run in Raspbian
- Can't get window instance after page load HOT 15
- Accessing iFrame Content only works with"'--disable-web-security'". HOT 1
- I can't see browser HOT 1
- Isssue when closing page or browser HOT 3
- Auto proxy not working HOT 1
- flawless HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppeteer-real-browser.