node-ytdl-core
node-ytdl-core copied to clipboard
SyntaxError: Invalid or unexpected token
2023-09-07 03:22 +00:00:
2023-09-07 03:22 +00:00: SyntaxError: Invalid or unexpected token
2023-09-07 03:22 +00:00: at new Script (vm.js:102:7)
2023-09-07 03:22 +00:00: at exports.decipherFormats (/root/api/source/node_modules/ytdl-core/lib/sig.js:116:51)
2023-09-07 03:22 +00:00: at runMicrotasks (
I solve the problem by updating the sig.js code by this Pr that I had already done https://github.com/khlevon/node-ytdl-core/blob/fix/youtube-issue-2/lib/sig.js
PR https://github.com/fent/node-ytdl-core/pull/1217
I fixed this issue by downgrading to 4.10.0 by using npm i [email protected]
I fixed this issue by downgrading to 4.10.0 by using
npm i [email protected]
Worked for me too ! waiting the PR to be approved
I fixed this issue by downgrading to 4.10.0 by using
npm i [email protected]
This worked for me. but download speed is very low
I fixed this issue by downgrading to 4.10.0 by using
npm i [email protected]
This worked for me.
It didn't work for me either.
This worked for me. but download speed is very low
This solution should solve your download bottleneck problem: https://github.com/fent/node-ytdl-core/issues/1252#issuecomment-1734429635
Thanks @Garima-sharma814 it seems to be working (I am hitting a timeout but that could be due to the workload)....