[Bug]: Downloader dosen't work on Dual Wan Router #1791

Open
opened 2024-02-23 04:32:16 +00:00 by briantho · 23 comments
briantho commented 2024-02-23 04:32:16 +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.3.2.0

Checklists

  • I use the portable version of the YouTube Music Application.
  • I can reproduce this issue in the official YTM web version.

What operating system are you using?

Windows

Operating System Version

Windows 11 23H2

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

  1. Have the downloader plugin enabled.
  2. Play a song
  3. Click the 3 vertical dots menu to bring up the context menu.
  4. Click the download button

Expected Behavior

I expect to be able to download a song.

Actual Behavior

Sometimes the downloader works, but about 75% of the time it fails with the message Argh! Apologies Download Failed...
nct::ERR_FAILED
Seems to happen randomly. Sometimes i am able to download several songs no problem. Then, i hit this error, and i keep trying again and again till eventually it works

image

Enabled plugins

Ad blocker
Downloader
In app menu
Navigation

Additional Information

I would provide a log, but it is unclear to me how to do so...

### 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.3.2.0 ### Checklists - [X] I use the portable version of the YouTube Music Application. - [ ] I can reproduce this issue in the [official YTM web version](https://music.youtube.com). ### What operating system are you using? Windows ### Operating System Version Windows 11 23H2 ### What CPU architecture are you using? x64 ### Last Known Working YouTube Music (Application) version _No response_ ### Reproduction steps 1. Have the downloader plugin enabled. 2. Play a song 3. Click the 3 vertical dots menu to bring up the context menu. 4. Click the download button ### Expected Behavior I expect to be able to download a song. ### Actual Behavior Sometimes the downloader works, but about 75% of the time it fails with the message Argh! Apologies Download Failed... nct::ERR_FAILED Seems to happen randomly. Sometimes i am able to download several songs no problem. Then, i hit this error, and i keep trying again and again till eventually it works ![image](https://github.com/th-ch/youtube-music/assets/3977205/50ec697b-ad66-401b-adf8-a09fc4002f53) ### Enabled plugins Ad blocker Downloader In app menu Navigation ### Additional Information I would provide a log, but it is unclear to me how to do so...
JellyBrick commented 2024-02-23 13:55:33 +00:00 (Migrated from github.com)

Are you using a proxy?

Are you using a proxy?
briantho commented 2024-02-23 18:12:40 +00:00 (Migrated from github.com)

Are you using a proxy?

No. I'm not using a proxy. I do have a dual wan load balancing edgerouter set up. I can try disabling one of the wan's but I'm not sure if that will help. Can you explain to me on how to do a debug log???

> Are you using a proxy? No. I'm not using a proxy. I do have a dual wan load balancing edgerouter set up. I can try disabling one of the wan's but I'm not sure if that will help. Can you explain to me on how to do a debug log???
Owner

Can you explain to me on how to do a debug log???

As a general advice, when you want to see logs of GUI applications, you usually launch them from the command line.

In my case, I do:

cd %USERPROFILE%\AppData\Local\Programs\youtube-music
".\YouTube Music.exe"

image

You just locate where the executable of Youtube Music is, and launch it like I did

> Can you explain to me on how to do a debug log??? As a general advice, when you want to see logs of GUI applications, you usually launch them from the command line. In my case, I do: ```cmd cd %USERPROFILE%\AppData\Local\Programs\youtube-music ".\YouTube Music.exe" ``` ![image](https://github.com/th-ch/youtube-music/assets/53124886/be67390b-99df-4ddb-8d19-428cf50184d2) You just locate where the executable of Youtube Music is, and launch it like I did
Owner
Step-by-step video: https://github.com/th-ch/youtube-music/assets/53124886/ef94a4f2-a143-4aeb-90bb-41b4861f8b75
briantho commented 2024-02-23 21:21:59 +00:00 (Migrated from github.com)

Ah ok. I thought there was something else you had to do. I didn't realize all I needed to do was run it from cli. I'm not able to test this right now, but should be able to in a few hours. I'll post the output once I get a chance

Ah ok. I thought there was something else you had to do. I didn't realize all I needed to do was run it from cli. I'm not able to test this right now, but should be able to in a few hours. I'll post the output once I get a chance
briantho commented 2024-02-24 03:38:53 +00:00 (Migrated from github.com)

This is the error/output I get. Let me know what I should try
image

This is the error/output I get. Let me know what I should try ![image](https://github.com/th-ch/youtube-music/assets/3977205/83a6f58d-a75f-4dd7-b8db-577b00586f76)
hiimghostine commented 2024-02-25 22:50:38 +00:00 (Migrated from github.com)

Same problem here too! When downloading my Liked Songs playlist, once it hits around 250 songs, the program crashes without any notice but shows up on the logs.

cmd_rld7BntwvV

Trying to continue downloading the songs on where it stopped results in an error message like above at first, but then when I restart the program it works again. Very weird.

Same problem here too! When downloading my Liked Songs playlist, once it hits around 250 songs, the program crashes without any notice but shows up on the logs. ![cmd_rld7BntwvV](https://github.com/th-ch/youtube-music/assets/20384051/5f32c3ac-8106-4151-9eb5-8cda2b5ed416) Trying to continue downloading the songs on where it stopped results in an error message like above at first, but then when I restart the program it works again. Very weird.
JellyBrick commented 2024-02-26 10:14:37 +00:00 (Migrated from github.com)

Same problem here too! When downloading my Liked Songs playlist, once it hits around 250 songs, the program crashes without any notice but shows up on the logs.

cmd_rld7BntwvV

Trying to continue downloading the songs on where it stopped results in an error message like above at first, but then when I restart the program it works again. Very weird.

This issue was fixed at fd6ba1eda1

> Same problem here too! When downloading my Liked Songs playlist, once it hits around 250 songs, the program crashes without any notice but shows up on the logs. > > ![cmd_rld7BntwvV](https://private-user-images.githubusercontent.com/20384051/307627490-5f32c3ac-8106-4151-9eb5-8cda2b5ed416.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg5MzgwNjgsIm5iZiI6MTcwODkzNzc2OCwicGF0aCI6Ii8yMDM4NDA1MS8zMDc2Mjc0OTAtNWYzMmMzYWMtODEwNi00MTUxLTllYjUtOGNkYTJiNWVkNDE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjI2VDA4NTYwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZjMWQxMGFmMWYzOTgyNDJkOTMzMjgyOTc4NmU2MjY4MGQwZTY5ODlhNTg4ZmVkNjQ0OGVjN2ZiMWQxYTRlZWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.1bsUhGKaxVjpJlTar6oiCQ7KWhAnRmRGu14Auz3qEtc) > > Trying to continue downloading the songs on where it stopped results in an error message like above at first, but then when I restart the program it works again. Very weird. This issue was fixed at https://github.com/th-ch/youtube-music/commit/fd6ba1eda113e703792c0ffef4f27c8e48e137a7
hiimghostine commented 2024-02-26 14:30:38 +00:00 (Migrated from github.com)

@JellyBrick Slightly different error this time after compiling from source, happens on both .mp3 and Source preset.
image
image

Also noticed that this message shows up when I select the .mp3 preset.

cmd_Kui5b0OjUj

@JellyBrick Slightly different error this time after compiling from source, happens on both .mp3 and Source preset. ![image](https://github.com/th-ch/youtube-music/assets/20384051/7b14a6d9-ff69-44e3-978e-16831475f16f) ![image](https://github.com/th-ch/youtube-music/assets/20384051/1b58bd73-a55f-49d1-ab76-1df9ae85c683) Also noticed that this message shows up when I select the .mp3 preset. ![cmd_Kui5b0OjUj](https://github.com/th-ch/youtube-music/assets/20384051/178c5895-b3ef-4f10-ac74-852124181d29)
JellyBrick commented 2024-02-26 17:08:51 +00:00 (Migrated from github.com)

@NotShige Are you using a 32-bit version of Windows?

@NotShige Are you using a 32-bit version of Windows?
JellyBrick commented 2024-02-26 17:44:26 +00:00 (Migrated from github.com)

@NotShige Are you experiencing the same issue after 55c934a?

@NotShige Are you experiencing the same issue after 55c934a?
briantho commented 2024-02-26 21:40:06 +00:00 (Migrated from github.com)

OK, so I decided to try and disable wan2 of my dual wan setup. The Problem immediately went away. I was able to download 20 songs in my liked music, with 0 problems. I reenabled wan2, ran the same test, and sure enough about 6 songs into downloading the error came back... @JellyBrick is there any way to get this working with a dual wan setup? I know dual wan is not a common thing in most homes, but I would greatly appreciate it if you could figure it out

OK, so I decided to try and disable wan2 of my dual wan setup. The Problem immediately went away. I was able to download 20 songs in my liked music, with 0 problems. I reenabled wan2, ran the same test, and sure enough about 6 songs into downloading the error came back... @JellyBrick is there any way to get this working with a dual wan setup? I know dual wan is not a common thing in most homes, but I would greatly appreciate it if you could figure it out
CheeseFort commented 2024-03-09 23:41:37 +00:00 (Migrated from github.com)

I am experiencing the same issue as @briantho. I am not using dual wan. My internet is Carrier-grade NAT with t-mobile home internet.
image

I am experiencing the same issue as @briantho. I am not using dual wan. My internet is Carrier-grade NAT with t-mobile home internet. ![image](https://github.com/th-ch/youtube-music/assets/110061484/c8c42974-233d-4488-901c-fba046ad6983)
briantho commented 2024-03-11 01:45:12 +00:00 (Migrated from github.com)

I am experiencing the same issue as @briantho. I am not using dual wan. My internet is Carrier-grade NAT with t-mobile home internet. image

ah, very interesting. I forgot to mention, the wan2 on my router is using starlink, which is in turn using cgnat. now it all makes sense, since I'm using load balancing some packets go through my local isp cable provider, and some go through starlink. In my test, i tried disabling wan2, aka starlink. I'll try disabling wan1, aka my local ISP cable provider tomorrow, and see if downloading works though starlink only. If that's the case, then it's not a dual wan issue, but a issue with CGnat. I'll test tomorrow and report back.

> I am experiencing the same issue as @briantho. I am not using dual wan. My internet is Carrier-grade NAT with t-mobile home internet. ![image](https://private-user-images.githubusercontent.com/110061484/311473686-c8c42974-233d-4488-901c-fba046ad6983.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAxMjEwNzksIm5iZiI6MTcxMDEyMDc3OSwicGF0aCI6Ii8xMTAwNjE0ODQvMzExNDczNjg2LWM4YzQyOTc0LTIzM2QtNDQ4OC05MDFjLWZiYTA0NmFkNjk4My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMzExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDMxMVQwMTMyNTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jZTFmNDY1ZTA3MGMyNTAxMGMzOGMzNjZlNTcxNmJiNDc5N2M3YTdkMWExNDMyYTQ1YjE0YzAyOTY2ZTM1NTUwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.g_iBE6vNWVLojUeDNojF-ZJyxgg5uJt6Du4shBJkPR0) ah, very interesting. I forgot to mention, the wan2 on my router is using starlink, which is in turn using cgnat. now it all makes sense, since I'm using load balancing some packets go through my local isp cable provider, and some go through starlink. In my test, i tried disabling wan2, aka starlink. I'll try disabling wan1, aka my local ISP cable provider tomorrow, and see if downloading works though starlink only. If that's the case, then it's not a dual wan issue, but a issue with CGnat. I'll test tomorrow and report back.
Temtaime commented 2024-03-30 11:50:38 +00:00 (Migrated from github.com)

Same problem :/

Same problem :/
rahulsah18 commented 2024-06-16 09:20:43 +00:00 (Migrated from github.com)

did anyone get the exact solution
Screenshot 2024-06-13 083940

did anyone get the exact solution ![Screenshot 2024-06-13 083940](https://github.com/th-ch/youtube-music/assets/172564117/a78c60a3-51ca-4a13-86cf-dc6b6d582ca5)
seanhalim commented 2024-07-20 11:21:30 +00:00 (Migrated from github.com)

Youtube music 1.2 used to be my work around, but now I'm getting this same error on any versions on any of my laptops this is really vexing TwT

Now if I try to download an album t'l say error: playlist is empty
image

When I try making a playlist, some, albeit very little songs will download, for the rest this error'll always pop out
image

Youtube music 1.2 used to be my work around, but now I'm getting this same error on any versions on any of my laptops this is really vexing TwT Now if I try to download an album t'l say error: playlist is empty ![image](https://github.com/user-attachments/assets/14b5a8a3-cd10-40be-8702-d20bf3ea6b35) When I try making a playlist, some, albeit very little songs will download, for the rest this error'll always pop out ![image](https://github.com/user-attachments/assets/677ee2e1-e741-4f00-a982-49d8bed4d17d)
dejl commented 2024-07-30 16:02:25 +00:00 (Migrated from github.com)

I get same issue. It's not just playlists, some songs just ERR when downloading through this program
yt-dlp can grab it fine though

I get same issue. It's not just playlists, some songs just ERR when downloading through this program yt-dlp can grab it fine though
franz-dc commented 2025-02-19 14:58:51 +00:00 (Migrated from github.com)

This also happens on the latest version. At the first try of downloading a song, it will throw an error with net::ERR_FAILED. Repeating the download will succeed afterwards.

Using getNetFetchAsFetch causes the error. Using native fetch (leaving it empty) does not cause an error on my end.

This also happens on the latest version. At the first try of downloading a song, it will throw an error with `net::ERR_FAILED`. Repeating the download will succeed afterwards. Using `getNetFetchAsFetch` causes the error. Using native `fetch` (leaving it empty) does not cause an error on my end.
franz-dc commented 2025-02-22 10:47:14 +00:00 (Migrated from github.com)

@JellyBrick is there any drawback of not using net fetch for the downloader plugin?

@JellyBrick is there any drawback of not using net fetch for the downloader plugin?
Iorweth333 commented 2025-03-20 22:07:36 +00:00 (Migrated from github.com)

I hoped for something that would be able to download entire playlist for later use in offline but, while downloading songs one by one works fine, downloading playlist fails with a number of error popup windows like below:

Image

Trying to start the download of the playlist again I got "Folder already exists" error - and indeed I found it among youtube-music files instead in my Downloads folder, but it's incomplete - only wo songs were fetched out of 13...
What's wrong? Hot to fix it?

I hoped for something that would be able to download entire playlist for later use in offline but, while downloading songs one by one works fine, downloading playlist fails with a number of error popup windows like below: ![Image](https://github.com/user-attachments/assets/8e180a1c-ddcd-4791-879e-a870b134e6f1) Trying to start the download of the playlist again I got "Folder already exists" error - and indeed I found it among youtube-music files instead in my Downloads folder, but it's incomplete - only wo songs were fetched out of 13... What's wrong? Hot to fix it?
Rednas83 commented 2025-03-22 09:14:34 +00:00 (Migrated from github.com)

Just tried it today and I also experience issues on windows 11

  • Music is downloaded in the download folder instead of the specified folder
  • Single songs are downloaded but sometimes need multiple attempts to actualy download. Perhaps add a log for failed downloads in the download folder?
  • Multiple songs like albums are not downloaded at all

Perhaps an idea to add support for synchronizing the full library automaticly with the downloads folder?

Info
Image
Image

Just tried it today and I also experience issues on windows 11 * Music is downloaded in the download folder instead of the specified folder * Single songs are downloaded but sometimes need multiple attempts to actualy download. Perhaps add a log for failed downloads in the download folder? * Multiple songs like albums are not downloaded at all Perhaps an idea to add support for synchronizing the full library automaticly with the downloads folder? **Info** ![Image](https://github.com/user-attachments/assets/1d00614e-2ed3-40fe-b583-08328670a431) ![Image](https://github.com/user-attachments/assets/67eaddef-7908-4a82-90d1-f8de819deb31)
JellyBrick commented 2025-03-24 04:30:54 +00:00 (Migrated from github.com)

@JellyBrick is there any drawback of not using net fetch for the downloader plugin?

Image

It supports the automatic management of system proxy configuration

> [@JellyBrick](https://github.com/JellyBrick?rgh-link-date=2025-02-22T10%3A47%3A14.000Z) is there any drawback of not using net fetch for the downloader plugin? ![Image](https://github.com/user-attachments/assets/048bfa04-7a4a-4134-942e-eb86f192ccd7) It supports the automatic management of system proxy configuration
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#1791
No description provided.