Error : The server responded with a non 2xx status code #2270

Closed
opened 2024-07-24 17:16:19 +00:00 by 4096Richard · 37 comments
4096Richard commented 2024-07-24 17:16:19 +00:00 (Migrated from github.com)

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

3.4.1

Checklists

What operating system are you using?

Windows

Operating System Version

Windows 11 Pro

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

Enable the downloader on the newest version
and try to download any song it will appear with
Error: The server responded with a non 2xxx status code

Expected Behavior

For it to download and not to fail but it seems youtube/google is locking this down

Actual Behavior

You go to download music for your giant itunes libary (me )
and it appears that it just fails with every song

Enabled plugins

  1. Ad blocker
  2. Album cover theme
  3. Ambient mode
  4. Compact side bar
  5. Crossfade beta
  6. Disable autoplay
  7. Discord rich presence
  8. Downloader
  9. In-app menu
  10. Lyrics Genius
  11. Notifications
  12. Precise volume

Additional Information

No response

### Preflight Checklist - [X] I use the latest version of YouTube Music (Application). - [X] I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a bug report that matches the one I want to file, without success. - [X] I understand that **th-ch/youtube-music has NO affiliation with Google or YouTube** ### YouTube Music (Application) Version 3.4.1 ### Checklists - [X] I use the portable version of the YouTube Music Application. - [ ] I can reproduce this issue in the [official version of (WEB) YTM](https://music.youtube.com). ### What operating system are you using? Windows ### Operating System Version Windows 11 Pro ### What CPU architecture are you using? x64 ### Last Known Working YouTube Music (Application) version _No response_ ### Reproduction steps Enable the downloader on the newest version and try to download any song it will appear with Error: The server responded with a non 2xxx status code ### Expected Behavior For it to download and not to fail but it seems youtube/google is locking this down ### Actual Behavior You go to download music for your giant itunes libary (me ) and it appears that it just fails with every song ### Enabled plugins 1. Ad blocker 2. Album cover theme 3. Ambient mode 4. Compact side bar 5. Crossfade beta 6. Disable autoplay 7. Discord rich presence 8. Downloader 9. In-app menu 10. Lyrics Genius 11. Notifications 12. Precise volume ### Additional Information _No response_
zenzer0s commented 2024-07-24 19:27:11 +00:00 (Migrated from github.com)

image
same Issue with me

![image](https://github.com/user-attachments/assets/8380167e-9290-4ee1-99cb-f9e72bac943c) same Issue with me
pachyderm111 commented 2024-07-24 22:11:30 +00:00 (Migrated from github.com)

image
same here :/

![image](https://github.com/user-attachments/assets/86f485a0-eb5d-4906-815c-09ebb8d9e51d) same here :/
MichaeIDeSanta commented 2024-07-25 05:11:18 +00:00 (Migrated from github.com)

image
same on windows 10 too

![image](https://github.com/user-attachments/assets/b91b1231-14f8-4a3a-8c05-c89bf571da8b) same on windows 10 too
SamuDifferent commented 2024-07-25 12:49:40 +00:00 (Migrated from github.com)

image
Same on Ubuntu 24.04 LTS

![image](https://github.com/user-attachments/assets/35f9a0a2-ca88-4fdd-b62b-9859c604fc6b) Same on Ubuntu 24.04 LTS
4096Richard commented 2024-07-26 03:07:00 +00:00 (Migrated from github.com)

It appears to be from the server side. Hopefully there's a fix rolling out soon.

Thanks

> It appears to be from the server side. Hopefully there's a fix rolling out soon. Thanks
AuracleTech commented 2024-07-31 00:16:30 +00:00 (Migrated from github.com)

In waiting for those who use python & FFMPEG you can use this
Not ideal, but its a temporary alternative
Edit : Idk if it could be implemented considering its python, but it would fix the issue, also it uses ffmpeg which idk if youtube music does by default, just wanted to let that out

import yt_dlp as youtube_dl


def get_video(url, output_path="."):
    ydl_opts = {
        "outtmpl": f"{output_path}/%(artist)s - %(title)s.%(ext)s",
        "format": "bestaudio/best",
        "postprocessors": [
            {
                "key": "FFmpegExtractAudio",
                "preferredcodec": "mp3",
                "preferredquality": "320",
            }
        ],
        "postprocessor_args": ["-ar", "48000"],
        "prefer_ffmpeg": True,
    }

    try:
        with youtube_dl.YoutubeDL(ydl_opts) as ydl:
            ydl.download([url])
        print("Download and conversion completed successfully.")
    except Exception as e:
        print(f"An error occurred: {e}")


if __name__ == "__main__":
    video_url = input("Enter the YouTube video URL: ")
    output_directory = (
        input("Enter the output directory (leave blank for current directory): ") or "."
    )
    get_video(video_url, output_directory)
In waiting for those who use python & FFMPEG you can use this Not ideal, but its a temporary alternative Edit : Idk if it could be implemented considering its python, but it would fix the issue, also it uses ffmpeg which idk if youtube music does by default, just wanted to let that out ```py import yt_dlp as youtube_dl def get_video(url, output_path="."): ydl_opts = { "outtmpl": f"{output_path}/%(artist)s - %(title)s.%(ext)s", "format": "bestaudio/best", "postprocessors": [ { "key": "FFmpegExtractAudio", "preferredcodec": "mp3", "preferredquality": "320", } ], "postprocessor_args": ["-ar", "48000"], "prefer_ffmpeg": True, } try: with youtube_dl.YoutubeDL(ydl_opts) as ydl: ydl.download([url]) print("Download and conversion completed successfully.") except Exception as e: print(f"An error occurred: {e}") if __name__ == "__main__": video_url = input("Enter the YouTube video URL: ") output_directory = ( input("Enter the output directory (leave blank for current directory): ") or "." ) get_video(video_url, output_directory) ```
Owner

In waiting for those who use python & FFMPEG you can use this Not ideal, but its a temporary alternative Edit : Idk if it could be implemented considering its python, but it would fix the issue, also it uses ffmpeg which idk if youtube music does by default, just wanted to let that out

import yt_dlp as youtube_dl


def get_video(url, output_path="."):
    ydl_opts = {
        "outtmpl": f"{output_path}/%(artist)s - %(title)s.%(ext)s",
        "format": "bestaudio/best",
        "postprocessors": [
            {
                "key": "FFmpegExtractAudio",
                "preferredcodec": "mp3",
                "preferredquality": "320",
            }
        ],
        "postprocessor_args": ["-ar", "48000"],
        "prefer_ffmpeg": True,
    }

    try:
        with youtube_dl.YoutubeDL(ydl_opts) as ydl:
            ydl.download([url])
        print("Download and conversion completed successfully.")
    except Exception as e:
        print(f"An error occurred: {e}")


if __name__ == "__main__":
    video_url = input("Enter the YouTube video URL: ")
    output_directory = (
        input("Enter the output directory (leave blank for current directory): ") or "."
    )
    get_video(video_url, output_directory)

why give code when you can directly use yt-dlp from the command line?

> In waiting for those who use python & FFMPEG you can use this Not ideal, but its a temporary alternative Edit : Idk if it could be implemented considering its python, but it would fix the issue, also it uses ffmpeg which idk if youtube music does by default, just wanted to let that out > > ```python > import yt_dlp as youtube_dl > > > def get_video(url, output_path="."): > ydl_opts = { > "outtmpl": f"{output_path}/%(artist)s - %(title)s.%(ext)s", > "format": "bestaudio/best", > "postprocessors": [ > { > "key": "FFmpegExtractAudio", > "preferredcodec": "mp3", > "preferredquality": "320", > } > ], > "postprocessor_args": ["-ar", "48000"], > "prefer_ffmpeg": True, > } > > try: > with youtube_dl.YoutubeDL(ydl_opts) as ydl: > ydl.download([url]) > print("Download and conversion completed successfully.") > except Exception as e: > print(f"An error occurred: {e}") > > > if __name__ == "__main__": > video_url = input("Enter the YouTube video URL: ") > output_directory = ( > input("Enter the output directory (leave blank for current directory): ") or "." > ) > get_video(video_url, output_directory) > ``` why give code when you can directly use yt-dlp from the command line?
AuracleTech commented 2024-07-31 09:59:02 +00:00 (Migrated from github.com)

because you can manipulate the video/audio from code

because you can manipulate the video/audio from code
Owner

Well, that is completely pointless since we are not using python for this project.

Heck, we are already using a library to "manipulate" video/audio from code.

Well, that is completely pointless since we are not using python for this project. Heck, we are already using a library to "manipulate" video/audio from code.
AuracleTech commented 2024-07-31 11:58:03 +00:00 (Migrated from github.com)

Well, that is completely pointless since we are not using python for this project.

Heck, we are already using a library to "manipulate" video/audio from code.

Like it said it was an alternative for users who wanted to dl while its down, I just shared the script I made myself for my server
The implementation was just a recommendation if possible, if not its whatever

> Well, that is completely pointless since we are not using python for this project. > > Heck, we are already using a library to "manipulate" video/audio from code. Like it said it was an alternative for users who wanted to dl while its down, I just shared the script I made myself for my server The implementation was just a recommendation if possible, if not its whatever
Dan-tk commented 2024-07-31 16:43:51 +00:00 (Migrated from github.com)

Well, that is completely pointless since we are not using python for this project.
Heck, we are already using a library to "manipulate" video/audio from code.

Like it said it was an alternative for users who wanted to dl while its down, I just shared the script I made myself for my server The implementation was just a recommendation if possible, if not its whatever

Where to put this script?

> > Well, that is completely pointless since we are not using python for this project. > > Heck, we are already using a library to "manipulate" video/audio from code. > > Like it said it was an alternative for users who wanted to dl while its down, I just shared the script I made myself for my server The implementation was just a recommendation if possible, if not its whatever Where to put this script?
Owner

if you don't already know, then nowhere
it is meant for people that know how to write scripts/programs

if you don't already know, then nowhere it is meant for people that know how to write scripts/programs
Dan-tk commented 2024-07-31 23:49:36 +00:00 (Migrated from github.com)

if you don't already know, then nowhere it is meant for people that know how to writ

I just wanted a heads up, because I can't download songs. Also I only know JS, and not python, but I'm learning python

> if you don't already know, then nowhere it is meant for people that know how to writ I just wanted a heads up, because I can't download songs. Also I only know JS, and not python, but I'm learning python
neolight1010 commented 2024-07-31 23:59:17 +00:00 (Migrated from github.com)

This issue seems to have been solved in the latest release.

This issue seems to have been solved in the latest release.
AuracleTech commented 2024-08-01 00:03:00 +00:00 (Migrated from github.com)

This issue seems to have been solved in the latest release.

Just tested new update, download button doesn't do anything, I click on it and its as if there was no function/action linked to it
DL folder empty too

> This issue seems to have been solved in the latest release. Just tested new update, download button doesn't do anything, I click on it and its as if there was no function/action linked to it DL folder empty too
avivi55 commented 2024-08-01 12:13:44 +00:00 (Migrated from github.com)

This issue seems to have been solved in the latest release.

Still broken.

> This issue seems to have been solved in the latest release. Still broken.
JellyBrick commented 2024-08-01 12:14:48 +00:00 (Migrated from github.com)

This issue seems to have been solved in the latest release.

Still broken.

@avivi55 Have you tried v3.5.1?

> > This issue seems to have been solved in the latest release. > > Still broken. @avivi55 Have you tried v3.5.1?
AuracleTech commented 2024-08-01 12:17:07 +00:00 (Migrated from github.com)

This issue seems to have been solved in the latest release.

Still broken.

@avivi55 Have you tried v3.5.1?

This one released 28 min ago works

> > > This issue seems to have been solved in the latest release. > > > > > > Still broken. > > @avivi55 Have you tried v3.5.1? This one released 28 min ago works
avivi55 commented 2024-08-01 12:27:39 +00:00 (Migrated from github.com)

@avivi55 Did you try 3.5.1?

The changelog doesn't mention this issue.
Just tried it it works. my bad.

nice work 👍

> @avivi55 Did you try 3.5.1? The changelog doesn't mention this issue. Just tried it it works. my bad. nice work :+1:
Owner

the changelog is automated, and it says to look at the commit history between the previous and the current release for more info

the changelog is automated, and it says to look at the commit history between the previous and the current release for more info
4096Richard commented 2024-08-03 18:58:00 +00:00 (Migrated from github.com)

Thanks guys needed it for my step dads birthday CD thanks a lot

Thanks guys needed it for my step dads birthday CD thanks a lot
yarik303 commented 2024-12-22 09:10:00 +00:00 (Migrated from github.com)

version 3.6.2.0, the issue is back

version 3.6.2.0, the issue is back
stutopp commented 2024-12-26 23:09:58 +00:00 (Migrated from github.com)

Same issue & details as OP in v3.7.1.0 on x86-64 Win11Pro.

Same issue & details as OP in v3.7.1.0 on x86-64 Win11Pro.
TheBlackJack22 commented 2024-12-28 22:54:26 +00:00 (Migrated from github.com)

is there any fix yet for 3.7.1?

is there any fix yet for 3.7.1?
TheBlackJack22 commented 2025-01-19 03:29:54 +00:00 (Migrated from github.com)

is there any fix yet for 3.7.1?

Some please explain how i can fix the 2xx status code error.
Happens for any music i attempt to download, I'm crying, please......

> is there any fix yet for 3.7.1? Some please explain how i can fix the 2xx status code error. Happens for any music i attempt to download, I'm crying, please......
iserius commented 2025-01-26 11:33:46 +00:00 (Migrated from github.com)

same result in 3.7.2 mac intel sequoia

Image
same result in 3.7.2 mac intel sequoia <img width="272" alt="Image" src="https://github.com/user-attachments/assets/303ab3f0-13cf-48ac-90e2-236144e34800" />
arzezio7 commented 2025-02-06 15:04:31 +00:00 (Migrated from github.com)

Why this thread is closed?? The bug still appears in recent build. smh

Why this thread is closed?? The bug still appears in recent build. smh
botcscriptcheck commented 2025-02-21 20:34:46 +00:00 (Migrated from github.com)

This is definitely still happening. Just tried to download a playlist on Linux and got this madness instead.

Image

This is definitely still happening. Just tried to download a playlist on Linux and got this madness instead. ![Image](https://github.com/user-attachments/assets/0df0e1ca-65ea-4a12-b6df-b20756532e5f)
JhonnydLeon commented 2025-02-27 18:36:47 +00:00 (Migrated from github.com)

Image

![Image](https://github.com/user-attachments/assets/b1b2d309-1ed2-401f-82b0-e84fc2ca23c8)
Grandeception commented 2025-03-25 15:09:25 +00:00 (Migrated from github.com)

its back again a month later

Image

its back again a month later ![Image](https://github.com/user-attachments/assets/7a2144dc-56da-44e1-b47d-047f97bfd456)
oyeanu commented 2025-04-01 11:29:34 +00:00 (Migrated from github.com)

Same issue on intel mac os 15.2 (24C101)

Same issue on intel mac os 15.2 (24C101)
n0souls commented 2025-04-13 19:01:27 +00:00 (Migrated from github.com)

Same on windows 11 (3.8.0.0)

Same on windows 11 (3.8.0.0)
Rockyest commented 2025-04-24 12:02:11 +00:00 (Migrated from github.com)

Same on Windows 10 (3.8.0.0)

Same on Windows 10 (3.8.0.0)
MrSalehSalem commented 2025-04-25 04:53:41 +00:00 (Migrated from github.com)

Same on windows 11 Home (3.8.0.0)

Same on windows 11 Home (3.8.0.0)
Gaurav-V28 commented 2025-04-25 06:55:18 +00:00 (Migrated from github.com)

Same here on Arch Linux

Same here on Arch Linux
sh2288 commented 2025-04-25 07:39:34 +00:00 (Migrated from github.com)

Same on Windows 10 (3.8.0.0) 2025/4/25

**Same on Windows 10 (3.8.0.0) 2025/4/25**
WEEZOOKARP commented 2025-04-27 03:42:13 +00:00 (Migrated from github.com)

Got the same issue today, I'm on latest

Got the same issue today, I'm on latest
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#2270
No description provided.