Skip to content

Error without a message #14

Description

@SaadArdati
com.sapher.youtubedl.YoutubeDLException: 
        at com.sapher.youtubedl.YoutubeDL.execute(YoutubeDL.java:90)
        at <..>.Controller.lambda$request$0(Controller.java:55)
        at java.lang.Thread.run(Thread.java:748)

The code:

					File bin = new File("bin/youtube-dl.exe");
					YoutubeDL.setExecutablePath(bin.getAbsolutePath());
					YoutubeDLRequest request = new YoutubeDLRequest(url, downloadDir.getPath());
					request.setOption("format", "bestaudio");
					request.setOption("output", uuid + ".%(ext)s");

					YoutubeDLResponse response = YoutubeDL.execute(request);
					String stdOut = response.getOut();
					System.out.println(stdOut);

The error is on the YoutubeDL.execute line.

The code works perfectly on my pc but it errors with the no-message error when I move the jar to my VPS.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions