Giter Club home page Giter Club logo

Comments (12)

realcoloride avatar realcoloride commented on September 4, 2024

Yes its cloudflare's dumb shit with waiting times that might be yielding it, sorry!

from node_characterai.

BrettPatterson1 avatar BrettPatterson1 commented on September 4, 2024

Damn that's too bad. Thanks for the help though!

from node_characterai.

BrettPatterson1 avatar BrettPatterson1 commented on September 4, 2024

Do you know if its possible to wait until the cloudflare protection has passed? Once it starts hanging it doesn't stop and I'm wondering if I can just increase the timeout or something. Still a noob here though so I'm not sure lol.

from node_characterai.

realcoloride avatar realcoloride commented on September 4, 2024

No because its unpredictable sadly

from node_characterai.

realcoloride avatar realcoloride commented on September 4, 2024

Can confirm it hangs and doesn't do anything. I am currently invesgating into the issue.

from node_characterai.

realcoloride avatar realcoloride commented on September 4, 2024
[node_characterai] Puppeteer - ProtocolError: Page.navigate timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed.
client.js:211
        if (request.status() === 200) {      
                    ^

TypeError: Cannot read properties of undefined (reading 'status')
    at Client.authenticateAsGuest (client.js:211:21)

from node_characterai.

realcoloride avatar realcoloride commented on September 4, 2024

Hello, upon testing, the issue seems like its coming from a new slowdown of the new headless mode. Trying in old true headless mode seems to be working perfectly.

from node_characterai.

realcoloride avatar realcoloride commented on September 4, 2024

For some reason it feels like I cant even run it properly anymore.. I need to probably investigate deeper on this issue.

from node_characterai.

realcoloride avatar realcoloride commented on September 4, 2024

So sometimes it seems to work properly and sometimes it just hands on "https://beta.character.ai/chat/auth/lazy/". Running it on headful right now and I think they're now either waiting for you to click on the Accept cookie button, or they have a rate limit, or more, user input

from node_characterai.

realcoloride avatar realcoloride commented on September 4, 2024

Ok, after investigation, it might be an issue with CORS policies either from puppeteer or stealth plugin.
chrome_4bMKiQ99Vk

EDIT: Sometimes it works and sometimes it doesnt. I don't really know why.

from node_characterai.

realcoloride avatar realcoloride commented on September 4, 2024

Ok so I have made an experimental thing that keeps trying to generate a session for atleast 20 times until a response is recieved because I suspect there is now something around uuids.
Code_6Oq2oVYaP8

from node_characterai.

realcoloride avatar realcoloride commented on September 4, 2024

Problem seems to have been fixed with this solution. If any have any errors or feedback, let me know. Commits: d1b6272 and 25a541d

from node_characterai.

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.