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

[Bug]: Downloading plugin not working #2780

Closed
3 of 5 tasks
rrondo opened this issue Dec 26, 2024 · 40 comments
Closed
3 of 5 tasks

[Bug]: Downloading plugin not working #2780

rrondo opened this issue Dec 26, 2024 · 40 comments
Labels
bug Something isn't working cannot-reproduce Bug cannot be reproduced fix-available A fix to the issue is available in a new version

Comments

@rrondo
Copy link

rrondo commented Dec 26, 2024

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.7.1.0

Checklists

What operating system are you using?

Windows

Operating System Version

Windows 11 24H2 (26120.2705)

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

v3.6.2

Reproduction steps

  1. Enabled Downloader plugin
  2. I chose a non-system folder where the audio will be downloaded
  3. Pressed Download Arrow (button)

Expected Behavior

Song will be downloaded in .mp3

Actual Behavior

Get Error
YouTube_Music_OzINyiPTW9  26 12 24-21-09

Enabled plugins

  1. Blur Navigation bar
  2. Bypass Age Restriction
  3. Compact Sidebar
  4. Exponential Volume
  5. In-App menu
  6. Navigation
  7. Skip Disliked Songs
  8. Taskbar Media Control

Additional Information

Tried both portable and regular (installed) version. At least 2 recent releases Download feature are not working. Tried many random songs with a different artist.

@Ruffy4K3267

This comment was marked as duplicate.

@Mad880

This comment was marked as duplicate.

@a-tokarev

This comment was marked as duplicate.

@WEEZOOKARP

This comment was marked as duplicate.

@JellyBrick JellyBrick added the cannot-reproduce Bug cannot be reproduced label Dec 27, 2024
@JellyBrick
Copy link
Collaborator

Can you try disabling Override User-Agent?

@gi728h
Copy link

gi728h commented Dec 27, 2024

Tried but still the same

Downloading Gurnazar - Dil Tu Jaan Tu [4BrziEPQrOQ
Error: The server responded with a non 2xx status code
in 60408db2fce24e94cd1119886d29284d682e92a5f64d914bb090f562a1d5dd32
Trace: InnertubeError: The server responded with a non 2xx status code
    at /opt/YouTube Music/resources/app.asar/dist/main/index.js:701:10224 {
  info: {
    error_type: 'FETCH_FAILED',
    response: Response {
      status: 403,
      statusText: '',
      headers: Headers {
        'access-control-allow-credentials': 'true',
        'access-control-allow-origin': 'https://www.youtube.com',
        'access-control-expose-headers': 'Client-Protocol, Content-Length, Content-Type, X-Bandwidth-Est, X-Bandwidth-Est2, X-Bandwidth-Est3, X-Bandwidth-App-Limited, X-Bandwidth-Est-App-Limited, X-Bandwidth-Est-Comp, X-Bandwidth-Avg, X-Head-Time-Millis, X-Head-Time-Sec, X-Head-Seqnum, X-Response-Itag, X-Restrict-Formats-Hint, X-Sequence-Num, X-Segment-Lmt, X-Walltime-Ms',
        'content-length': '0',
        'content-type': 'text/plain',
        'cross-origin-resource-policy': 'cross-origin',
        date: 'Fri, 27 Dec 2024 05:12:49 GMT',
        'last-modified': 'Wed, 02 May 2007 10:26:10 GMT',
        server: 'gvs 1.0',
        'timing-allow-origin': 'https://www.youtube.com',
        vary: 'Origin',
        'x-content-type-options': 'nosniff'
      },
      body: ReadableStream { locked: false, state: 'closed', supportsBYOB: false },
      bodyUsed: false,
      ok: false,
      redirected: false,
      type: 'default',
      url: ''
    }
  },
  date: 2024-12-27T05:12:49.110Z,
  version: '12.2.0'
}
    at sendError (/opt/YouTube Music/resources/app.asar/dist/main/index.js:764:113)
    at /opt/YouTube Music/resources/app.asar/dist/main/index.js:764:5126
Done: /home/user/Music/Gurnazar - Dil Tu Jaan Tu.mp3

@WEEZOOKARP
Copy link

Can confirm the issue persists on multiple devices running win10 & 11, issue also persists when override user agent is toggled on/off with full system restarts in between.

@ChaoticHolon
Copy link

ChaoticHolon commented Dec 27, 2024

Can confirm this is happening across all my computers on both Windows 10 and 11 (including over VPN and when user agent is toggled). Absolutely needs a fix.

@gokulcoder7

This comment was marked as duplicate.

@errorb0t
Copy link

The same issue persists for me. Adding my post from the other thread because I am still able to download short songs:

Perhaps interesting for troubleshooting: Short songs - and only short songs - still work for me, the songs linked are 0:32 and 0:37 respectively. I've tried other songs shortly before and after to rule out other circumstances changing.
https://music.youtube.com/watch?v=1_vkmjnOlwQ&si=hzmiCrPu5VHQWKz6
https://music.youtube.com/watch?v=B5leUzYa_qo&si=SKaLBmb1YcbZesHq

@JellyBrick
Copy link
Collaborator

What region are you using the app in, and are you logged into Google account? Are you using a VPN, and if so, what region are you connected to? This seems to be an A/B test by YouTube, as this issue does not occur in Tokyo, Japan, and Seoul, South Korea.

@VanGeko
Copy link

VanGeko commented Dec 27, 2024

have the same issue, in Germany, no vpn and google logged in.

@gi728h
Copy link

gi728h commented Dec 27, 2024

yeah works fine now !!

@Volcaholic8
Copy link

yeah works fine now !!

How? I used VPN to Tokyo, but it's still not working

@superlinuxero
Copy link

Same error here, under Arch Linux, no VPN, logged in

@Artan1408
Copy link

I've tried with different vpn locations as well, still the same issue

@ArjixWasTaken
Copy link
Contributor

@Artan1408 have you tried with different google accounts?

@Artan1408
Copy link

@Artan1408 have you tried with different google accounts?

I just tried it with another account, still got the error

@Adrriii
Copy link

Adrriii commented Dec 28, 2024

Still had this issue on the master branch right after the dependency was updated (youtubei v12.2.0) so it's definitely that the fix didn't work for everyone

@tomas293

This comment was marked as duplicate.

@Mendungo
Copy link

Hey Just got the issue too, was working fine yesterday....
Screenshot 2024-12-20 143956

@Euphonit
Copy link

also encountering this issue on steam deck (Arch Linux) I live in the US. tried downloaded appimage from a few versions ago (Version: 3.5.3) and instead gave error "unexpected token (1:71)" does that for all songs on that version.

@macintelk
Copy link

macintelk commented Dec 29, 2024

same on mac os x. it is a server side error and because of that no download. update: most of the time the download fails but sometimes it just work

@yashoswalyo
Copy link

I am also facing this issue
image

@digitalnomad91
Copy link

I'm having the same issue, but with a small caveat -- If I trigger the download within the first few seconds of starting the song it seems to work almost every single time. Manually setting the auto-download feature to percent based and to trigger at 1% seems to work as far as auto-downloading.

@Pratech1015

This comment was marked as duplicate.

@JellyBrick JellyBrick added the bug Something isn't working label Jan 1, 2025
@QB3-11

This comment was marked as duplicate.

@ReyesJayMilson
Copy link

Same issue, i tried disabling a browser extension on edge that affects vpn (TTV LOL PRO), it worked for a few minutes until it showed the same error again.

@franz-dc
Copy link
Contributor

franz-dc commented Jan 8, 2025

I tried digging through YouTube.js issues and found this workaround which uses iOS as the client. It now consistently downloads anything I throw at it, at least on my end.

Edit: it's now hit or miss, it does fail sometimes between dev restarts :/
Edit 2: I won't be submitting a PR yet as this can be inconsistent, but it can be tested on my fork.

@macintelk
Copy link

macintelk commented Jan 8, 2025

just added your downloader patch to main src and so far it works all the time. individual and full playlist download is working. there's a random "format not found" bug

@franz-dc
Copy link
Contributor

just added your downloader patch to main src and so far it works all the time. individual and full playlist download is working. there's a random "format not found" bug

Hmm, I haven't encountered that error. Could you send some screenshots/logs regarding this if possible?

@macintelk
Copy link

not getting it atm in both win/mac platforms. anyway closing and reopening the app seems to fix. if i get it again i'll post a print

@JellyBrick
Copy link
Collaborator

I tried digging through YouTube.js issues and found this workaround which uses iOS as the client. It now consistently downloads anything I throw at it, at least on my end.

Edit: it's now hit or miss, it does fail sometimes between dev restarts :/ Edit 2: I won't be submitting a PR yet as this can be inconsistent, but it can be tested on my fork.

It's not a complete solution because the iOS client doesn't support opus.

@franz-dc
Copy link
Contributor

It's not a complete solution because the iOS client doesn't support opus.

My bad, didn't know about that. I'll try to make a fix with a new approach using Proof of Origin Tokens instead.

@TheBlackJack22
Copy link

Im sorry but can someone please give me a solution, not able to download for almost two whole months....

Image

@wuchuanyu
Copy link

On my mac(m3 pro macOS 15.2), when clicking "download" the situation is:
Versions before V3.7.1, shows a alert dialog which saying "The server responded with a non 2xx status code".
V3.7.2, no response and there's no file downloaded.

@TheBlackJack22
Copy link

On my mac(m3 pro macOS 15.2), when clicking "download" the situation is: Versions before V3.7.1, shows a alert dialog which saying "The server responded with a non 2xx status code". V3.7.2, no response and there's no file downloaded.

I can't even click the download button on Win11, but clicking the download playlist button just continues to repeat the 2xx error

@Adrriii
Copy link

Adrriii commented Jan 19, 2025

v3.7.2 : Still the same error message (non 2xx status code)

@ImaDoor2785
Copy link

mee too but if i use #2863 then it works

@arzezio7
Copy link

mee too but if i use #2863 then it works

How to apply this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cannot-reproduce Bug cannot be reproduced fix-available A fix to the issue is available in a new version
Projects
None yet
Development

Successfully merging a pull request may close this issue.