naseif / tiktok-scraper

Scraper for TikTok. Download videos, music, fetch users info and more.
https://naseif.github.io/tiktok-scraper/
MIT License
90 stars 25 forks source link

getAllVideosFromUser method causes triggerUncaughtException #18

Open SwissAlps2 opened 1 year ago

SwissAlps2 commented 1 year ago

When I use the getAllVideosFromUser method from the terminal using node it creates the following error. It was working a few weeks ago but not anymore. I have edited the output slightly by replacing characters with 4 *'s

I'm running Debian 11

node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

frame.addScriptTag: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'nonce-****' 'unsafe-eval' sf16-website-login.neutral.ttwstatic.com s20.tiktokcdn.com *.tiktokcdn-us.com". Either the 'unsafe-inline' keyword, a hash ('sha256-****='), or a nonce ('nonce-...') is required to enable inline execution.

at async /home/coding/node_modules/tiktok-signature/index.js:78:7 {
  name: 'Error'
}

Node.js v19.6.0