-
Notifications
You must be signed in to change notification settings - Fork 798
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
SyntaxError: Invalid or unexpected token #1251
Comments
I solve the problem by updating the sig.js code by this Pr that I had already done https:/khlevon/node-ytdl-core/blob/fix/youtube-issue-2/lib/sig.js PR #1217 |
I fixed this issue by downgrading to 4.10.0 by using |
Worked for me too ! waiting the PR to be approved |
This worked for me. |
This worked for me. but download speed is very low |
It didn't work for me either. |
This solution should solve your download bottleneck problem: #1252 (comment) |
Thanks @Garima-sharma814 it seems to be working (I am hitting a timeout but that could be due to the workload).... |
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 ()
2023-09-07 03:22 +00:00: at processTicksAndRejections (internal/process/task_queues.js:95:5)
2023-09-07 03:22 +00:00: at async /root/api/source/server/boot/root.js:25:20
2023-09-07 03:22 +00:00: evalmachine.:426
2023-09-07 03:22 +00:00: Ama=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,oC(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]};Ila(ncode);
2023-09-07 03:22 +00:00: ^^^^^^^^^^^^^^^^
2023-09-07 03:22 +00:00:
The text was updated successfully, but these errors were encountered: