Skip to content
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

FATAL Invalid or unexpected token - getInfo() #1123

Closed
Mittelblut9 opened this issue Aug 25, 2022 · 6 comments
Closed

FATAL Invalid or unexpected token - getInfo() #1123

Mittelblut9 opened this issue Aug 25, 2022 · 6 comments

Comments

@Mittelblut9
Copy link

Hello everyone.
I got this error when i run my code (see below).
But it seems like a module error? Some suggestions how to fix this?

Screenshot 2022-08-25 at 12 24 54

const video_link = "https://www.youtube.com/watch?v=BmjBU0IIR0k"

let info = await ytdl.getInfo(video_link);
@Mittelblut9 Mittelblut9 changed the title FATAL Invalid or unexprected token - getInfo() FATAL Invalid or unexpected token - getInfo() Aug 25, 2022
@phaze-the-dumb
Copy link

Its throwing pretty much the same error for me even when I don't use ytdl.getInfo() when i'm just using ytdl() to download videos too

@11208
Copy link

11208 commented Aug 25, 2022

Can you follow the instruction in this issue to see if it fix your problem? #1108

@Mittelblut9
Copy link
Author

@11208 Downgraded to 4.10.0. Now it works thanks! I hope it get fixed soon so i don't have to stay on a deprecated version :)

@TaylorDuck72
Copy link

Having same issue but not using getInfo(), it was working few hours ago.

@aandrew-me
Copy link

Rolling back to 4.10.0 works but the download speed is much slower.

@TimeForANinja
Copy link
Collaborator

marking this as a dup of #1108 or #1110 or #1113
should also be fixed with #1126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants