-
Notifications
You must be signed in to change notification settings - Fork 824
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: Missing catch or finally after try #1113
Comments
This is also happening to me. Not sure what the issue is? |
I'm facing the same issue |
Rolling back to 4.10.0 fixes problem for me |
@bwees I can confirm that downgrading to version 4.10.0 fixes the issue, but in my case the download speed decrease a lot. |
I've debugged the issue, it is thrown by this line Line 116 in 11103be
The issue stems from somewhere in this function Lines 33 to 73 in 11103be
Which appears to be transforming some compiled javascript code from youtube's html5 player, the transformed code seems to have illegal syntax. I can confirm 4.10.0 is working for me |
Same problem here guys. Worked after rolling back to 4.10.10 here as well, but the download speed seems to have decreased a lot, not sure why. Anyway, guess we'll have to wait for further updates. |
When replacing the line in
|
Same issue for me |
PR for the Fix but missing "Maintainer approval" PR: #1111 |
I've been having the exact same issue for some time now since around Friday. I thought it might have been an issue with the library so deleted the node-modules folder, and rebuilt. Still persisted. Re-installed my entire project on windows, same issue. Edit: temp. fix works 👍 |
Currently, the code traverses the base.js n transform function to extract it in full. But it gets tripped up with the inclusion of regular expressions, strings and possibly try-catch loops that include function closing braces, causing the process to short circuit. The fix identifies the start of the function and the end of the function and simply extracts everything in between. |
This fixed the issue until i got |
rolling back don't fix for me i just get the same error as befor |
Any solution for this error? Rolling back to 4.10.0 take forever to download.. |
@noviardi1986 it seems like switching to the fork of the project https://github.com/GreepTheSheep/node-ytdl-core is the best option as of now until the changes in that fork get pulled in |
I'm also getting this issue, even on 4.10.0 |
same issue for me. please fix it :( |
Thank Bro.. |
Just reinstall ytdl-core the proble already been solve.. |
🎉 This issue has been resolved in version 4.11.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Code :-
Expected Behaviour
log the video info
Ouptut on Console
The text was updated successfully, but these errors were encountered: