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

Error Authentication Failure on Windows [SSL Error] #905

Closed
1 task done
kyhou opened this issue Nov 27, 2023 · 67 comments · Fixed by #1474
Closed
1 task done

Error Authentication Failure on Windows [SSL Error] #905

kyhou opened this issue Nov 27, 2023 · 67 comments · Fixed by #1474
Labels
bug Something isn't working

Comments

@kyhou
Copy link

kyhou commented Nov 27, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When trying to login on windows I'm getting and Authentication error: Error Authentication Failure - HandshakeException: Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(../../third_party/boringssl/src/ssl/handshake.cc:393))

image

Expected Behavior

Login process should work.

Steps to reproduce

Open app.
Go to settings.
Try to login.

Operating System

Windows 10 Pro 22H2

Spotube version

v3.2.0

Installation source

GitHub Releases (Binary)

Additional information

No response

@kyhou kyhou added the bug Something isn't working label Nov 27, 2023
@kyhou kyhou changed the title Write the title here Error Authentication Failure on Windows Nov 27, 2023
@KRTirtho
Copy link
Owner

I'm guessing you've outdated ssl certificates in your system or Spotify's one got outdated and they've not yet updated

@raaj1v
Copy link

raaj1v commented Nov 27, 2023

I'm also facing same error.

@hawkeyed
Copy link

hawkeyed commented Nov 27, 2023

I have the same problem.
Edit: It works now but I don't know how. It might be related to site certificate.
Edit2: It is broken today again.

@andrepgaspar
Copy link

I have the same problem, tried to install 3.3 and 3.2, same thing in both versions

@kyhou
Copy link
Author

kyhou commented Nov 29, 2023

So, I was able to finally login.
What I did was to logout and log back in with my spotify account and get the new sp_dc and sp_key.

The thing is, when I opened the spotify page I didn't need to login again, the saved credentials worked but in the Spotube app it gave that error. When I manually logged off and logged back in it generated new credentials and those worked.

Maybe this is just a case of showing a better error msg informing the user that he needs to logout and log back in again.
Edit: I mean login again to spotify specifically.

@kyhou
Copy link
Author

kyhou commented Nov 30, 2023

I just got the same error again.
But, this time, I was not able to login again.
I tried what I talked about in the previous post but it didn't work.

I will wait a bit more and try again, if anything changes I will make a new post.

@grcgela
Copy link

grcgela commented Dec 2, 2023

having the same error for both previous to new 3.3.0 version.

UPDATE:
Tested on different Windows machine and still having this issue. not able to point where exactly this path the error is referring to.. couldn't find it on event viewer or logs.
image

@KRTirtho
Copy link
Owner

KRTirtho commented Dec 4, 2023

Can you guys specify your region. I'm still unable to reproduce this

@kyhou
Copy link
Author

kyhou commented Dec 4, 2023

I'm from Brazil.

@mitch55500
Copy link

mitch55500 commented Dec 4, 2023

I'm from France and I have exactly the same error message on Windows 10.

@rod93
Copy link

rod93 commented Dec 5, 2023

hi same for me try to disconnect from spotify then clear cookies, the key change but same error

@atiktak
Copy link

atiktak commented Dec 7, 2023

Can you guys specify your region. I'm still unable to reproduce this

I have the same issue on one device, while it works fine on the other device so maybe it is not region dependant.

@grcgela
Copy link

grcgela commented Dec 8, 2023

tried again and got the same error. Im using it from Philippines.

@KRTirtho
Copy link
Owner

KRTirtho commented Dec 9, 2023

Is that happening for all Windows 10 users, not any other devices?

@anrg77
Copy link

anrg77 commented Dec 9, 2023

Is that happening for all Windows 10 users, not any other devices?

the same is happening with windows 10 and 11 23h2 in Indian region

@karniv00l
Copy link
Contributor

Same here on W11 using Parallels. Looking into it

@karniv00l
Copy link
Contributor

karniv00l commented Dec 9, 2023

Works fine on:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 3.18.0-7.0.pre.55, on Microsoft Windows [Version 10.0.22621.2361], locale en-US)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.5.5)
[!] Android Studio (not installed)
[✓] VS Code (version 1.85.0)
[✓] Connected device (3 available)
[✓] Network resources

BoringSSL is an SDK dependency, maybe try releasing with the newer Flutter version

@KRTirtho
Copy link
Owner

KRTirtho commented Dec 9, 2023

Wow, thanks for finding out the root issue 💪
Does it work with beta channel, at least? Master channel is too much risky imo 😓

@karniv00l
Copy link
Contributor

Work fine for me on stable 3.16.3

@KRTirtho
Copy link
Owner

I updated Flutter to latest version in nightly. Please check if it works.

@atiktak
Copy link

atiktak commented Dec 10, 2023

Just tried on nightly 184, still doesn't work for me

@Goteer
Copy link

Goteer commented Dec 16, 2023

Had this error, and because I have a very slimmed down version of windows 10 I decided to manually update my ssl certificates using certutil and powershell. After restarting spotube it now works (At least under nightly 184, haven't checked release yet)

For anyone with this same issue, check windows updates, as you might just need to get new certificates (Or update them manually if you refuse to use windows updates, look up certutil and SST files)

@mitch55500
Copy link

Hi all, for any reason I can't explain, I can now login in without any problem. Maybe thanks of a windows update as @Goteer would say it.

Works with master ou nightly versions on windows 10.

@Fizzify
Copy link

Fizzify commented Dec 25, 2023

Hello @Goteer

I have same scenario as you with the Windows. Can you elaborate further on the certutil and SST files?

@Fizzify
Copy link

Fizzify commented Dec 25, 2023

Never mind, I fixed it using this guide. Many thanks!

https://support.microfocus.com/kb/kmdoc.php?id=KM03573386

@katorly
Copy link

katorly commented Apr 28, 2024

This was the solution that worked last time https://support.microfocus.com/kb/kmdoc.php?id=KM03573386

May I mention that that updating root certificates manually doesn't work for now...

@kyhou
Copy link
Author

kyhou commented May 2, 2024

@KRTirtho since my last comment it was working just fine.
Today I tried to login and I'm getting the same error as the one I opened this issue with.
image
I'm on version 3.6.0 on Windows 10.

Btw, how do I get some logs to help with this? The logs menu is empty.

@LetsBuild-exe
Copy link

LetsBuild-exe commented May 2, 2024

@KRTirtho since my last comment it was working just fine. Today I tried to login and I'm getting the same error as the one I opened this issue with. image I'm on version 3.6.0 on Windows 10.

Btw, how do I get some logs to help with this? The logs menu is empty.

Same Problem again, i am on win11, tried installing new WIndows update but didnt fix it. I am also on V3.6.0 in Germany

Funny thing is on another machine in the same Network wich also runs on Win11 newest Updates installed i dont have a Problem....

@LetsBuild-exe
Copy link

@kyhou I got it fixed. The Region in Settings was somehow completly wrong, i set the Region to my Region again and then everything loaded and i didnt get the error. Maybe this helps

@KRTirtho KRTirtho changed the title Error Authentication Failure on Windows Error Authentication Failure on Windows [SSL Error] May 4, 2024
@KRTirtho KRTirtho linked a pull request May 4, 2024 that will close this issue
KRTirtho added a commit that referenced this issue May 4, 2024
* fix: certificate error by using custom ssl certificate

* Cd/docker linux ar (#1468)

* cd: use docker buildx

* cd: use linux host for linux arm instead of macos m1

m1 doesn't support nested virtualization. (Apple truly sucks)

* cd: don't specify arch in Dockerfile

* cd: use custom Dockerfile from ubuntu instead of flutter image

* cd: add setup java for android

* cd: add flutter distributor pre-built docker image for arm

* cd: save me from this cursed arm build

* cd: ??

* cd: ??

* cd: use docker build

* fix: windows SSL Exception for Signing in

* refactor: extract update checker as a basic function instead of a hook
@KRTirtho KRTirtho moved this to Done in Spotube Board May 4, 2024
@KRTirtho
Copy link
Owner

KRTirtho commented May 4, 2024

Ok, so only for login part I allowed ignoring SSL errors for only *.spotify.com host, as open.spotify.com causes this SSL certificate error all the time. So, it should work fine now in Windows.

You can find the update in the nightly builds

@edocli
Copy link

edocli commented May 5, 2024

You can find the update in the nightly builds

works, hopefully merge to the stable version soon

@kyhou
Copy link
Author

kyhou commented May 6, 2024

@kyhou I got it fixed. The Region in Settings was somehow completly wrong, i set the Region to my Region again and then everything loaded and i didnt get the error. Maybe this helps

humm, tried and for me didn't work :/

Ok, so only for login part I allowed ignoring SSL errors for only *.spotify.com host, as open.spotify.com causes this SSL certificate error all the time. So, it should work fine now in Windows.

You can find the update in the nightly builds

@KRTirtho Just tried and it worked!!

@hongsedaima
Copy link

hongsedaima commented May 9, 2024

显然,如果一个人可以在 github 上描述一个软件 bug,那么这个人就拥有 VPN。所以问题根本不是VPN造成的。
但到底是什么原因,到目前为止似乎没有人知道,甚至连软件作者也不知道。所有已知的操作均已尝试无济于事。而且,软件作者在出现错误时给出的提醒毫无意义,无法帮助任何人定位和解决问题。

(注意翻译是否正确)

这是上次有效的解决方案https://support.microfocus.com/kb/kmdoc.php?id=KM03573386

发生此问题的原因是 Flutter 框架使用过时的 ssl 证书。但是,该问题已得到解决,因为证书已由 Flutter 框架更新。您面临的错误完全不同。

另外,我应该关闭此线程并将遇到此问题的每个人引导至新的问题线程。那是我的不好。

而且,软件作者在出现错误时给出的提醒毫无意义,无法帮助任何人定位和解决问题。

我不确定翻译是否混乱,但尝试帮助解决问题。这里的每个人都自愿参与,所以感谢他们宝贵的时间,并在可能的情况下进行合作。

非常感谢作者回复。实际上我之前已经更新过证书了,更新过程并无任何错误,但错误无法登录。今天再次尝试登录竟然成功了,我猜测之前无法登录的原因是:更新了证书后没有重启电脑(我猜的)

@RDXMANI
Copy link

RDXMANI commented May 13, 2024

image

on windows 11 v.3.6.0
tryed using different browser too didnt work out
from india it works on my another laptop but since i switched my laptop i tried installed it on my main lappy but don't know what to do now

@hoo0
Copy link

hoo0 commented May 15, 2024

I reinstalled and it works

@Setup2134
Copy link

Not working windows 10 21H2 New Zealand region

@richardhttps
Copy link

I reinstalled and it works

Same here

@camcam1773
Copy link

camcam1773 commented May 27, 2024

If you are using Spotify free tier, check the country in your account settings. Spotify doesn't allow connections from outside the country in your profile. This fixed it for me.

@TELEK1NET1C
Copy link

not working, same issue-- US region. freshly updated windows, spotify free

@Shihabus-Sakib-Rad
Copy link

Same problem with v3.6; Windows 10 updated; BD Region in account and app settings

@KRTirtho KRTirtho mentioned this issue Jun 1, 2024
2 tasks
KRTirtho added a commit that referenced this issue Jun 3, 2024
* chore: fix analyzer issues

* fix(updater): dead link (#1408)

* docs: broken link in README.md (fixes #1310) (#1311)

* docs: remove appimage link in readme #1082 (#1171)

* Updating Readme according to #1082

Updating Readme according to #1082

* Added explanation

The explanation is now given and the expression is more formal and explanatory, instead of just linking the issue.

* Update use_update_checker.dart

---------

Co-authored-by: MerkomassDev <[email protected]>
Co-authored-by: Karim <[email protected]>
Co-authored-by: Kingkor Roy Tirtho <[email protected]>

* fix(linux): tray icon not showing #541

upgrade old packages

* fix(search): load more button not working #1417

* fix: spotify friends and user profile icon (mobile) showing when not authenticated #1410

* chore: add docker and m1 based linux arm build

* cd: fix sed failing us

* cd: use docker cask

* fix: windows SSL Certificate error breaking login #905 (#1474)

* fix: certificate error by using custom ssl certificate

* Cd/docker linux ar (#1468)

* cd: use docker buildx

* cd: use linux host for linux arm instead of macos m1

m1 doesn't support nested virtualization. (Apple truly sucks)

* cd: don't specify arch in Dockerfile

* cd: use custom Dockerfile from ubuntu instead of flutter image

* cd: add setup java for android

* cd: add flutter distributor pre-built docker image for arm

* cd: save me from this cursed arm build

* cd: ??

* cd: ??

* cd: use docker build

* fix: windows SSL Exception for Signing in

* refactor: extract update checker as a basic function instead of a hook

* cd: fix windows build error due to nightly version format

* cd: fix github versioning scheme

* chore:  remove assets/ca entry in pubspec.yaml

* fix(macos): Logs directory not created by default #1353

* refactor: Dart based Github Workflow CLI (#1490)

* feat: add build dart script for windows

* feat: add android build support

* feat: add linux build support

* feat: add macos build support

* feat: add ios build support

* feat: add deps install command and workflow file

* cd: what?

* cd: what?

* cd: what?

* cd: update workflow inputs

* cd: replace release binary

* cd: run flutter pub get

* cd: use dpkg zstd instead of xz, windows disable innoInstall, fix channel enum.name and reset pubspec after changing build no for nightly

* cd: fix tar copy path

* cd: fix copy linux command

* cd: fix windows inno depend and fix android aab path

* cd: idk

* cd: linux why???

* cd: windows choco copy failed

* cd: use dart tar archive for creating tar file

* cd: fix linux file copy error

* cd: use tar command directly

* feat: add linux_arm platform

* cd: add linux_arm platform

* cd: don't know what?

* feat: notification about nightly channel update

* chore: fix some errors parsing nightly version info

* refactor: move dart scripts as commands under CLI

* chore: add translated message command to command list

* feat(translations): add Basque translation (#1493)

* added Basque translation

* chore: fix country codes and language native name

---------

Co-authored-by: Kingkor Roy Tirtho <[email protected]>

* feat(translations): add georgian language (#1450)

* feat: add georgian language

* feat: translate more georgian words

* feat(translations): add Finnish translations (#1449)

* docs: broken link in README.md (fixes #1310) (#1311)

* docs: remove appimage link in readme #1082 (#1171)

* Updating Readme according to #1082

Updating Readme according to #1082

* Added explanation

The explanation is now given and the expression is more formal and explanatory, instead of just linking the issue.

* added finnish translation

* chore: fix arb syntax errors and language in l10n entries

---------

Co-authored-by: MerkomassDev <[email protected]>
Co-authored-by: Karim <[email protected]>
Co-authored-by: Kingkor Roy Tirtho <[email protected]>
Co-authored-by: Onni Nevala <[email protected]>

* feat(translations): add Indonesian translation (#1426)

* docs: broken link in README.md (fixes #1310) (#1311)

* docs: remove appimage link in readme #1082 (#1171)

* Updating Readme according to #1082

Updating Readme according to #1082

* Added explanation

The explanation is now given and the expression is more formal and explanatory, instead of just linking the issue.

* Add Indonesia translation

---------

Co-authored-by: MerkomassDev <[email protected]>
Co-authored-by: Karim <[email protected]>
Co-authored-by: Kingkor Roy Tirtho <[email protected]>

* feat(translations): Improve tr locales (#1419)

* docs: broken link in README.md (fixes #1310) (#1311)

* docs: remove appimage link in readme #1082 (#1171)

* Updating Readme according to #1082

Updating Readme according to #1082

* Added explanation

The explanation is now given and the expression is more formal and explanatory, instead of just linking the issue.

* Improve tr locales

---------

Co-authored-by: MerkomassDev <[email protected]>
Co-authored-by: Karim <[email protected]>
Co-authored-by: Kingkor Roy Tirtho <[email protected]>

* feat(player): add volume slider floating label showing percentage (#1445)

* docs: broken link in README.md (fixes #1310) (#1311)

* docs: remove appimage link in readme #1082 (#1171)

* Updating Readme according to #1082

Updating Readme according to #1082

* Added explanation

The explanation is now given and the expression is more formal and explanatory, instead of just linking the issue.

* add volume level tooltip in volume_slider

---------

Co-authored-by: MerkomassDev <[email protected]>
Co-authored-by: Karim <[email protected]>
Co-authored-by: Kingkor Roy Tirtho <[email protected]>

* fix: fallback to LRCLIB when lyrics line less than 6 lines #1461

* feat: Local music library (#1479)

* feat: add one additional library folder

This folder just doesn't get downloaded to.
I think I'm going to rework it so that it can be multiple folders,
but I'm going to commit my progress so far anyway.

Signed-off-by: Blake Leonard <[email protected]>

* chore: update dependencies so that it builds

I'm not sure if this breaks CI or something, but I couldn't build
it locally to test my changes, so I made these changes and it
builds again.

Signed-off-by: Blake Leonard <[email protected]>

* feat: index multiple folders of local music

If you used a previous commit from this branch, this is a breaking
change, because it changes the type of a configuration field. but
since this is still in development, it should be fine.

Signed-off-by: Blake Leonard <[email protected]>

* refactor: manage local library in local tracks tab

This also refactors the list to use slivers instead. That's the
easiest way to have multiple scrolling lists here...

The console keeps getting spammed with some intermediate layout
error but I can't hold it long enough to figure out what's causing
it.

Signed-off-by: Blake Leonard <[email protected]>

* refactor: use folder add/remove icons in library

Signed-off-by: Blake Leonard <[email protected]>

* refactor: remove redundant settings page

Signed-off-by: Blake Leonard <[email protected]>

* refactor: rename "Local Tracks" to just "Local"

Not sure if this would be the recommended way to do it...

Signed-off-by: Blake Leonard <[email protected]>

* fix: console spam about useless Expanded

Signed-off-by: Blake Leonard <[email protected]>

* chore: remove completed TODO

Signed-off-by: Blake Leonard <[email protected]>

* chore: use new Platform constants; regenerate plugins

Signed-off-by: Blake Leonard <[email protected]>

* refactor: put local libraries on separate pages

Signed-off-by: Blake Leonard <[email protected]>

---------

Signed-off-by: Blake Leonard <[email protected]>

* fix: local track not showing up in queue

* feat: local library folder cards

* feat: personalized stats based on local music history (#1522)

* feat: add playback history provider

* feat: implement recently played section

* refactor: use route names

* feat: add stats summary and top tracks/artists/albums

* feat: add top date based filtering

* feat: add stream money calculation

* refactor: place search in mobile navbar and settings in home appbar

* feat: add individual minutes and streams page

* feat(stats): add individual minutes and streams page

* chore: default period to 1 month

* feat: add text to explain user how hypothetical fees are calculated

* chore: ensure usage of route names instead of direct paths

* cd: add cache key

* cd: remove media_kit_event_loop from git

* fix: some text are garbled in different parts of the app #1463 #1505

* refactor: use replace http with dio and use it as the default

* cd: use dio in cli as well

* chore: fix home feed not showing up

* chore: downloaded tracks folder not opening

* feat: play initially available tracks of playlist/album immediately and fetch rest in background #670

* feat: upgrade to Flutter 3.22.0

* refactor: migrate deprecated warnings

* fix(playback): skipping tracks with unplayable sources instead of falling back #1492

* chore: migrate android gradle to declarative config syntax

* chore: disable impeller for now

* fix(windows): installer tries to install in current directory

* chore: upgrade deps and appbar bg fix

* chore: podspec update

* chore: bump version and generate changelogs

---------

Signed-off-by: Blake Leonard <[email protected]>
Co-authored-by: Kshamendra <[email protected]>
Co-authored-by: MerkomassDev <[email protected]>
Co-authored-by: Karim <[email protected]>
Co-authored-by: Josu Igoa <[email protected]>
Co-authored-by: Omari Sopromadze <[email protected]>
Co-authored-by: ctih <[email protected]>
Co-authored-by: Onni Nevala <[email protected]>
Co-authored-by: Yusril Rapsanjani <[email protected]>
Co-authored-by: W͏ I͏ N͏ Z͏ O͏ R͏ T͏ <[email protected]>
Co-authored-by: Akash Pattnaik <[email protected]>
Co-authored-by: Blake Leonard <[email protected]>
@KRTirtho KRTirtho closed this as completed Jun 3, 2024
@KRTirtho KRTirtho moved this from Done to Deployed in Spotube Board Jun 3, 2024
@augviolet
Copy link

augviolet commented Jun 21, 2024

I'll offer a thought, I had the same login problem at first, and tried some of the methods under this topic, but it didn't work. In the end, I added a proxy in the system environment variable, like this, I added three kinds at once, and then restarted the explorer or computer, and the login was successful. Friends can try to see if it works!

屏幕截图 2024-06-21 180808

@viazure
Copy link

viazure commented Jul 6, 2024

I turned on Clash's Tun Mode and Service Mode and this issue was resolved. Hope this helps friends who also use Clash as a proxy tool.

@Evoke-W
Copy link

Evoke-W commented Aug 27, 2024

I found a solution, for example, my place of registration is Japan, then I need to open the global agent Japan before landing, if I open the Singapore agent, although I can log in to spotify, but sp_dc is not available at this time, you need to log out, open the global agent of registration, and then log in, sp_dc is available!(translate)

@Hi-Phile
Copy link

Hi-Phile commented Sep 1, 2024

I also ran into this problem, but I figured it out. If there's no certificate (in my case there wasn't), you must first install, then login using the Spotify App (not the Web browser). I was using a freshly installed Windows 11 (Tiny 11 23h2) but never had the Spotify App installed, so I was just trying to use the Spotify Web App (which I could login successfully and access my account). So I just decided to install the Spotify App, and then I was able to login to the Spotify App (dc_sp key was the same). Once I did that, I closed the Spotify App, and launched Spotube 3.6.0 (3.7.0, 3.7.1 and 3.8.0 aren't launching). I was then able to connect via dc_sp key. Hope this might help some who encounters this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Deployed
Development

Successfully merging a pull request may close this issue.