No login #17
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Error to login account google
This is error message
"This browser or app may not be secure. Learn more
Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in."
Hey @fernandogobah , thanks for submitting the issue! I was able to reproduce the bug, and the latest version (v1.3.1) ships with a fix for this (by setting a specific user-agent).
Feel free to re-open this issue if it does not work properly!
Hello @th-ch , I had the same error as @fernandogobah . I am using the (.AppImage) on an ArchLinux. How could I solve that error, any idea?
Hey @ivansaul, do you still have the issue with the latest version 1.9.0?
Hi @th-ch , I've been testing the app (.AppImage) for a few hours. At the moment I did not have any problems when logging in with my google account. But I found a couple of bugs with the plugins (discord and downloader).
The discord plugin does not work,, while downloader gives the impression that it will work fine, since it does the download and conversion process but the final file (.mp3) I couldn't find anywhere.
I haven't had a chance to test the (AUR) package yet. Thanks for developing this great app ❤️.
Bumping this as it is still broken in version 1.14.0, as stated in the linked issue #507 .
Sadly it seems updating/faking the browser agent does not work anymore.
As far as I can tell this player is the most maintained and I would hate to use ytmdesktop again, which has not been updated for over a year, but has a working login. There the login window opens separately. Could this be the reason for it working smoothly?
Google themselves suggest using OAuth 2.0. Could this help here?
I am not at all familiar with electron apps, so sadly that is all I can contribute here :/
I'd like to help but don't know how as it works fine for me
try using different agents (https://github.com/th-ch/youtube-music/issues/507#issuecomment-987355507)
or updating electron version maybe (electron v14 deprecates the remote module - will probably need some code changes)
(OAuth is used for google login on external websites and is irrelevant here from what I know)
@Araxeus Thank's for the hint. Using the userAgent my chrome has set, seemed to do the trick. Could've thought of that 🤦♂️
Still would be good to not have to rely on workarounds, where users need to use the console, when having an electron app.
Could you say what is the value of
navigator.userAgent
when it doesn't works vs when it does work?You can check by writing it in devtools
Currently it is at
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) YouTubeMusic/1.14.0 Chrome/89.0.4389.128 Electron/12.2.2 Safari/537.36
, which is what it was when it didn't work (if I remember correctly).To fix the issue I just used the
navigator.userAgent
from my Chrome browserMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36
.I simply replaced it by updating the userAgent as a getter function once, before choosing to sign in. Since @mimaketi used a completely different string (obv. bc it is Arch), my best guess for the relevant difference is the
YouTubeMusic/1.14.0
part. as maybe this is not a recognized "browser".this is the part where we set user agent:
5483f0ee36/index.js (L207-L211)
We are not setting chrome version so i'm guessing electron automatically adds this stuff which might be outdated because of an old electron version which might be causing the problem so maybe we just need to update the electron version?
can you try the changes from this PR? #515
I could upload windows binaries if needed
@Araxeus Windows binaries/executables would be great, as I have installed it via chocolatey initially.
https://www.mediafire.com/folder/fvjiihmu3ka2z/Youtube-Music_useragents-patch
User agent is now set even at startup and before going to sign-in page.
Sadly I still get presented with the insecure login page 😞
User agent can confirm is
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
This seems to be the only error showing up in console:
Currently the workaround that worked for me initially also seems to no longer go though :/
Hey I think I might have actually fixed the problem!
Feels free to give it a try 😃
Here are windows binaries:
https://www.mediafire.com/folder/fvjiihmu3ka2z/Youtube-Music_useragents-patch_v2 @KimBum