Giter Club home page Giter Club logo

Comments (7)

realcoloride avatar realcoloride commented on September 4, 2024 1

Hello, any error related to puppeteer (unless related to the package) is not my responsability and should be reported to puppeteer's package directly.
In node_characterai (not the dependencies), there are no mention of the package fs.

from node_characterai.

realcoloride avatar realcoloride commented on September 4, 2024 1

Puppeteer was not used back then, only node-fetch. However, due to extremely strict and aggressive anti-scrapping measures, the only solution is to use puppeteer.
EDIT: see #17

from node_characterai.

DutaKey avatar DutaKey commented on September 4, 2024

why u using require("fs").promises; ?

from node_characterai.

Parking-Master avatar Parking-Master commented on September 4, 2024

I was trying it out to see if it would fix it. Obviously it has nothing to do with the main file so it didn’t. I took it out, sorry for the confusion.

from node_characterai.

Parking-Master avatar Parking-Master commented on September 4, 2024

Ok, I changed require("fs/promises"); to require("fs").promises; on all the files the error was thrown on. It's a little better now, but now I am getting this error

pi@raspberrypi:~ $ node ai1.js
[node_characterai] Puppeteer - This is an experimental feature. Please report any issues on github.

  Puppeteer old Headless deprecation warning:
    In the near feature `headless: true` will default to the new Headless mode
    for Chrome instead of the old Headless implementation. For more
    information, please see https://developer.chrome.com/articles/new-headless/.
    Consider opting in early by passing `headless: "new"` to `puppeteer.launch()`
    If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.

(node:2097) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
/home/pi/.cache/puppeteer/chrome/linux-1108766/chrome-linux/chrome: 10: Syntax error: Unterminated quoted string


TROUBLESHOOTING: https://pptr.dev/troubleshooting

    at Interface.onClose (/home/pi/node_modules/@puppeteer/browsers/lib/cjs/launch.js:262:24)
    at Interface.emit (events.js:326:22)
    at Interface.close (readline.js:416:8)
    at Socket.onend (readline.js:194:10)
    at Socket.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1241:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
(node:2097) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:2097) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

from node_characterai.

Parking-Master avatar Parking-Master commented on September 4, 2024

@realcoloride is there a way to use node_characterai without puppeteer? Puppeteer seems pretty buggy and every time I fix an error with it another one occurs. It never works no matter what I do.

from node_characterai.

Parking-Master avatar Parking-Master commented on September 4, 2024

@realcoloride ok, thank you very much.

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.