Giter Site home page Giter Site logo

Comments (3)

sharpanimes avatar sharpanimes commented on September 25, 2024 1

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.

zfcsoftware avatar zfcsoftware commented on September 25, 2024

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.

zfcsoftware avatar zfcsoftware commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.