-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnhandledPromiseRejectionWarning: Error: Page crashed! #29
Comments
I have the same problem! please help |
@GodsWithin the last image is because server is not running when tried to generate token. This is because of the first error, but I'm not sure what is meaning the first error. |
Is there a way to dynamically generate a signature every time I make a query with, for example, these parameters: id = 10346733 & minCursor = 0 & maxCursor = 0 & type = 3 & count = 30 I know that browser.js is used to generate the signature, but how could I execute it inside the server when a query is made? |
@carcabot If I recall correctly, this error occured when starting the server. |
@fedeemilo Create a new command line process from whatever language you're using with the correct arguments. |
I have the same issue after starting server. |
@zmeeust Depending on your restart period, you should be fine if you store the previously generated signature in your application. Of course, if the server after a new period fails to restart again it might happen that your signature is now outdated and requires a manual server restart. |
@GodsWithin but first we need to start the server. I hope author will fix it. |
Hi guys, I have updated the main repo, please take a look and update your code, I hope this code it's much better than previous and more stable. There's an integrated http server which let you generate signatures dynamically using one chrome session. Greetings. |
@carcabot I`m so sorry, but |
On my side server is running without errors. This is an error related to puppeteer, probably your device is running out of memory. Try this topic maybe you'll find an answer. Can you tell me what device you use ? Thanks. |
@carcabot thank you for your response. Update: |
@carcabot And i see now we could not get comments by "https://m.tiktok.com/share/item/comment/list?id= Thank a lot. |
@zmeeust unfortunately TikTok removed these days comments from their web api. Comments are only available on mobile API now. You can still get trends and other stuff that are available on website. |
Just noticed the local http server logged this error into the console, I'm unsure what caused this as I was not monitoring the system at the time of the error, but it does result in browser.js failing to produce a valid token. The stacktrace, unfortunately in a bad format, below:
Is it possible that the js file could require some extra error handling to prevent crashes like this?
If it's of any more help, I tried manually executing browser.js and it returned this error:
Line 48 in index.js for me is
await this.page.goto("http://tiktok.com:8080/index.html", {
The text was updated successfully, but these errors were encountered: