Comments (7)
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.
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.
why u using require("fs").promises;
?
from node_characterai.
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.
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.
@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.
@realcoloride ok, thank you very much.
from node_characterai.
Related Issues (20)
- Cannot create object HOT 1
- Cannot read properties of undefined (reading 'length')
- ProtocolError HOT 14
- Character AI - New TTS system HOT 20
- Chat history endpoints changed HOT 2
- authenticateAsGuest() fails with error: Failed to fetch a lazy token HOT 1
- is there a way to get the generated image from the ai? HOT 1
- Cannot read properties of undefined (reading 'status') HOT 7
- Feature request: Character information HOT 2
- Timeout ms HOT 7
- createOrContinueChat issue HOT 5
- module completely errors after 2 messages at relatively the same time HOT 1
- How do you install chromium? HOT 7
- need hep stuck with problem for 4 weeks 😭😭😭 HOT 1
- Multiple conversation HOT 3
- Error: Could not get the full reply because it was aborted. This happens often when the output was filtered for violent or explicit content. HOT 15
- Thinking about rewriting the whole package in TypeScript (2.0 roadmap) HOT 9
- Erro HOT 2
- problem when trying to continue the chat session HOT 2
- Token Authentication Failure & Server Error 500 HOT 3
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 node_characterai.