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 · 65 comments · Fixed by #1474
Closed
1 task done

Error Authentication Failure on Windows [SSL Error] #905

kyhou opened this issue Nov 27, 2023 · 65 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

@KRTirtho
Copy link
Owner

In China you have to use a vpn/proxy

@katorly
Copy link

katorly commented Apr 16, 2024

In China you have to use a vpn/proxy

It is widely acknowledged that in China we have to use a VPN, so I'm certain that everyone from China in this post is using it. However, the problem remains.

@hongsedaima
Copy link

在中国你必须使用VPN/代理

很显然的,如果一个人可以在github描述一个软件的bug,那么这个人是有VPN的。所以这个问题根本不是因为VPN。
但到底是什么原因,好像迄今为止并没有人知道,甚至包括软件作者。目前已知的所有操作都尝试过,全部无效。并且软件作者在出错时给出的提醒也毫无意义,并不能帮助任何人定位问题、解决问题。

@KRTirtho
Copy link
Owner

Obviously, if a person can describe a software bug on github, then this person has a VPN. So the problem is not due to the VPN at all.
But what the reason is, no one seems to know so far, not even the software author. All known operations have been tried to no avail. Moreover, the reminders given by the software authors when errors are made are meaningless and cannot help anyone locate and solve the problem.

(Note sure if the translation is correct)

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

This issue was happening due to outdated ssl certificates used by Flutter framework. But, that issue is fixed because the certificates were updated by Flutter framework. The errors you're facing are entirely different.

Also, I should've closed this thread and directed everyone with this issue to a new issue thread. That's my bad.

Moreover, the reminders given by the software authors when errors are made are meaningless and cannot help anyone locate and solve the problem.

I'm not sure if it got messed in the translation but Try to help fix the issue. Everyone here is willingly volunturing, so be thankful for their valuable time and cooperate if possible.

@KRTirtho
Copy link
Owner

KRTirtho commented Apr 27, 2024

I guess #1403 is the issue both @GeekYwl and @dmeijide are facing

@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
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 <70111455+MerkomassDev@users.noreply.github.com>
Co-authored-by: Karim <37943746+ksaadDE@users.noreply.github.com>
Co-authored-by: Kingkor Roy Tirtho <krtirtho@gmail.com>

* 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 <krtirtho@gmail.com>

* 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 <70111455+MerkomassDev@users.noreply.github.com>
Co-authored-by: Karim <37943746+ksaadDE@users.noreply.github.com>
Co-authored-by: Kingkor Roy Tirtho <krtirtho@gmail.com>
Co-authored-by: Onni Nevala <nevalaonni@gmail.com>

* 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 <70111455+MerkomassDev@users.noreply.github.com>
Co-authored-by: Karim <37943746+ksaadDE@users.noreply.github.com>
Co-authored-by: Kingkor Roy Tirtho <krtirtho@gmail.com>

* 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 <70111455+MerkomassDev@users.noreply.github.com>
Co-authored-by: Karim <37943746+ksaadDE@users.noreply.github.com>
Co-authored-by: Kingkor Roy Tirtho <krtirtho@gmail.com>

* 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 <70111455+MerkomassDev@users.noreply.github.com>
Co-authored-by: Karim <37943746+ksaadDE@users.noreply.github.com>
Co-authored-by: Kingkor Roy Tirtho <krtirtho@gmail.com>

* 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 <me@blakes.dev>

* 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 <me@blakes.dev>

* 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 <me@blakes.dev>

* 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 <me@blakes.dev>

* refactor: use folder add/remove icons in library

Signed-off-by: Blake Leonard <me@blakes.dev>

* refactor: remove redundant settings page

Signed-off-by: Blake Leonard <me@blakes.dev>

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

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

Signed-off-by: Blake Leonard <me@blakes.dev>

* fix: console spam about useless Expanded

Signed-off-by: Blake Leonard <me@blakes.dev>

* chore: remove completed TODO

Signed-off-by: Blake Leonard <me@blakes.dev>

* chore: use new Platform constants; regenerate plugins

Signed-off-by: Blake Leonard <me@blakes.dev>

* refactor: put local libraries on separate pages

Signed-off-by: Blake Leonard <me@blakes.dev>

---------

Signed-off-by: Blake Leonard <me@blakes.dev>

* 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 <me@blakes.dev>
Co-authored-by: Kshamendra <github@ghoulcloud.slmail.me>
Co-authored-by: MerkomassDev <70111455+MerkomassDev@users.noreply.github.com>
Co-authored-by: Karim <37943746+ksaadDE@users.noreply.github.com>
Co-authored-by: Josu Igoa <josuigoa@ni.eus>
Co-authored-by: Omari Sopromadze <omari.sopromadze@gmail.com>
Co-authored-by: ctih <78687256+ctih1@users.noreply.github.com>
Co-authored-by: Onni Nevala <nevalaonni@gmail.com>
Co-authored-by: Yusril Rapsanjani <yusriltakeuchi@gmail.com>
Co-authored-by: W͏ I͏ N͏ Z͏ O͏ R͏ T͏ <75412448+mikropsoft@users.noreply.github.com>
Co-authored-by: Akash Pattnaik <akashjio66666@gmail.com>
Co-authored-by: Blake Leonard <blake@1024256.xyz>
@KRTirtho KRTirtho closed this as completed 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.

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.