KRTirtho / spotube

🎧 Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
https://spotube.krtirtho.dev/
Other
28.79k stars 1.19k forks source link

Error Authentication Failure on Windows [SSL Error] #905

Closed kyhou closed 3 months ago

kyhou commented 9 months ago

Is there an existing issue for this?

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

KRTirtho commented 9 months ago

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

raaj1v commented 9 months ago

I'm also facing same error.

hawkeyed commented 9 months ago

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 commented 9 months ago

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

kyhou commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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

kyhou commented 9 months ago

I'm from Brazil.

mitch55500 commented 9 months ago

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

rod93 commented 9 months ago

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

atiktak commented 9 months ago

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 commented 9 months ago

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

KRTirtho commented 9 months ago

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

anrg77 commented 9 months ago

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 commented 9 months ago

Same here on W11 using Parallels. Looking into it

karniv00l commented 9 months ago

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 commented 9 months ago

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

karniv00l commented 9 months ago

Work fine for me on stable 3.16.3

KRTirtho commented 9 months ago

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

atiktak commented 9 months ago

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

Goteer commented 9 months ago

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 commented 9 months ago

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 commented 8 months ago

Hello @Goteer

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

Fizzify commented 8 months ago

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

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

Goteer commented 8 months ago

Glad you were able to fix, hopefully that guide helps more people.

Might want to make the error suggest what might be wrong at least though

25 dic. 2023 10:21:00 Fizzify @.***>:

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

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

— Reply to this email directly, view it on GitHub[https://github.com/KRTirtho/spotube/issues/905#issuecomment-1868643150], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AKOFN43XBUXVD6JE6IFCWTDYLDIHZAVCNFSM6AAAAAA74EDT7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGY2DGMJVGA]. You are receiving this because you were mentioned.[Imagen de rastreo][https://github.com/notifications/beacon/AKOFN4ZEOEV6YFVDZKFB7QDYLDIHZA5CNFSM6AAAAAA74EDT7OWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTPME5U4.gif]

KRTirtho commented 8 months ago

Is this issue still relevant in 3.4.0?

wayleung commented 8 months ago

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

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

that works, thank you!

DoubleSheeps commented 8 months ago

Glad you were able to fix, hopefully that guide helps more people. Might want to make the error suggest what might be wrong at least though 25 dic. 2023 10:21:00 Fizzify @.***>: Never mind, I fixed it using this guide. Many thanks! https://support.microfocus.com/kb/kmdoc.php?id=KM03573386 — Reply to this email directly, view it on GitHub[#905 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AKOFN43XBUXVD6JE6IFCWTDYLDIHZAVCNFSM6AAAAAA74EDT7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGY2DGMJVGA]. You are receiving this because you were mentioned.[Imagen de rastreo][https://github.com/notifications/beacon/AKOFN4ZEOEV6YFVDZKFB7QDYLDIHZA5CNFSM6AAAAAA74EDT7OWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTPME5U4.gif]

that works, thank you!

happyeverydays414 commented 8 months ago

how to change root certification on firefox v112 for mac?

kyhou commented 8 months ago

Is this issue still relevant in 3.4.0?

I just updated to v3.4.0 and the error stopped, I didn't do any of the suggested fixes, just updated. If it shows up again I will post here.

cloook commented 8 months ago

V3.4.0 is still can't work , socket connect time out. The app log: ------- APP INFO ------- environment: release version: 3.4.0 appName: spotube buildNumber: 27 packageName: oss.krtirtho.spotube ---------- ERROR ---------- ClientException with SocketException: Operation timed out (OS Error: Operation timed out, errno = 60), address = open.spotify.com, port = 60727, uri=https://open.spotify.com/get_access_token?reason=transport&productType=web_player ------- STACK TRACE -------

0 IOClient.send (package:http/src/io_client.dart:119)

#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93) #2 _withClient (package:http/http.dart:166) #3 AuthenticationCredentials.fromCookie (package:spotube/provider/authentication_provider.dart:29) #4 TokenLoginForm.build. (package:spotube/components/desktop_login/login_form.dart:69)
Vassago-rw commented 8 months ago

V3.4.0 is still can't work , socket connect time out. The app log: ------- APP INFO ------- environment: release version: 3.4.0 appName: spotube buildNumber: 27 packageName: oss.krtirtho.spotube ---------- ERROR ---------- ClientException with SocketException: Operation timed out (OS Error: Operation timed out, errno = 60), address = open.spotify.com, port = 60727, uri=https://open.spotify.com/get_access_token?reason=transport&productType=web_player ------- STACK TRACE ------- #0 IOClient.send (package:http/src/io_client.dart:119) #1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93) #2 _withClient (package:http/http.dart:166) #3 AuthenticationCredentials.fromCookie (package:spotube/provider/authentication_provider.dart:29) #4 TokenLoginForm.build. (package:spotube/components/desktop_login/login_form.dart:69)

Same problem, I checked #930 and #972 logged out and logged back in to spotify to get sp_dc and sp_key also can't authenticate successfully, and it's not outdated ssl certificates either.

Crazyokd commented 7 months ago

Same problem on window11

Viraj3021 commented 7 months ago

930 #972 Need to update your Chrome browser and then login and try error will solved..

YYelf commented 7 months ago

same problem on MacOS

chinsansan commented 7 months ago

cannot login in windows11, though I have imported rootstore.rst file as https://github.com/KRTirtho/spotube/issues/905#issuecomment-1868643150 .

============================== CATCHER 2 LOG ============================== ------- DEVICE INFO ------- numberOfCores: 12 systemMemoryInMegabytes: 4096 ------- APP INFO ------- environment: release version: 3.4.0 appName: spotube buildNumber: packageName: spotube ---------- ERROR ---------- ClientException with SocketException: 信号灯超时时间已到 (OS Error: 信号灯超时时间已到 , errno = 121), address = open.spotify.com, port = 59241, uri=https://open.spotify.com/get_access_token?reason=transport&productType=web_player ------- STACK TRACE -------

0 IOClient.send (package:http/src/io_client.dart:119)

#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93) #2 _withClient (package:http/http.dart:166) #3 AuthenticationCredentials.fromCookie (package:spotube/provider/authentication_provider.dart:29) #4 TokenLoginForm.build. (package:spotube/components/desktop_login/login_form.dart:69) ------- CUSTOM INFO -------
WuTian-1023 commented 7 months ago

cannot login in windows11, though I have imported rootstore.rst file as #905 (comment) 。不能登录在windows11,虽然我已经导入rootstore.rst文件为#905(注释).

============================== CATCHER 2 LOG ================================ ------- DEVICE INFO ------- - 设备信息- numberOfCores: 12  核数:12 systemMemoryInMegabytes: 4096 系统内存(MB):4096 ------- APP INFO ------- -- APP资讯- environment: release  环境:释放 version: 3.4.0  版本:3.4.0 appName: spotube  应用程序名称:spotube buildNumber:  buildNumber: packageName: spotube  软件包名称:spotube ---------- ERROR ---------- - 错误- ClientException with SocketException: 信号灯超时时间已到 (OS Error: 信号灯超时时间已到 , errno = 121), address = open.spotify.com, port = 59241, uri=https://open.spotify.com/get_access_token?reason=transport&productType=web_player ,errno = 121),address = open.spotify.com,port = 59241,uri= https://open.spotify.com/get_access_token?原因=运输&productType=web_player ------- STACK TRACE ------- - 堆栈跟踪-- #0 IOClient.send (package:http/src/io_client.dart:119) #0 IOClient.send(package:http/src/io_client.dart:119) #1 BaseClient._sendUnstreamed (package:http/src/baseclient.dart:93) #1 BaseClient. sendUnstreamed(package:http/src/base_client.dart:93) #2 _withClient (package:http/http.dart:166) #2 _withClient(package:http/http.dart:166) #3 AuthenticationCredentials.fromCookie (package:spotube/provider/authentication_provider.dart:29) #3 AuthenticationCredentials.fromCookie(package:spotube/provider/authentication_provider.dart:29) #4 TokenLoginForm.build. (package:spotube/components/desktop_login/login_form.dart:69) #4 TokenLoginForm.build.(package:spotube/components/desktop_login/login_form.dart:69) ------- CUSTOM INFO ------- - 客户信息-

image Same here, is there a solution?

chinsansan commented 7 months ago

cannot login in windows11, though I have imported rootstore.rst file as #905 (comment) 。不能登录在windows11,虽然我已经导入rootstore.rst文件为#905(注释). ============================== CATCHER 2 LOG ================================ ------- DEVICE INFO ------- - 设备信息- numberOfCores: 12  核数:12 systemMemoryInMegabytes: 4096 系统内存(MB):4096 ------- APP INFO ------- -- APP资讯- environment: release  环境:释放 version: 3.4.0  版本:3.4.0 appName: spotube  应用程序名称:spotube buildNumber:  buildNumber: packageName: spotube  软件包名称:spotube ---------- ERROR ---------- - 错误- ClientException with SocketException: 信号灯超时时间已到 (OS Error: 信号灯超时时间已到 , errno = 121), address = open.spotify.com, port = 59241, uri=https://open.spotify.com/get_access_token?reason=transport&productType=web_player ,errno = 121),address = open.spotify.com,port = 59241,uri= https://open.spotify.com/get_access_token?原因=运输&productType=web_player ------- STACK TRACE ------- - 堆栈跟踪-- #0 IOClient.send (package:http/src/io_client.dart:119) #0 IOClient.send(package:http/src/io_client.dart:119) #1 BaseClient._sendUnstreamed (package:http/src/baseclient.dart:93) #1 BaseClient. sendUnstreamed(package:http/src/base_client.dart:93) #2 _withClient (package:http/http.dart:166) #2 _withClient(package:http/http.dart:166) #3 AuthenticationCredentials.fromCookie (package:spotube/provider/authentication_provider.dart:29) #3 AuthenticationCredentials.fromCookie(package:spotube/provider/authentication_provider.dart:29) #4 TokenLoginForm.build. (package:spotube/components/desktop_login/login_form.dart:69) #4 TokenLoginForm.build.(package:spotube/components/desktop_login/login_form.dart:69) ------- CUSTOM INFO ------- - 客户信息-

image Same here, is there a solution?

I again try to use VPN global model for all traffic, then login it successfully.

katorly commented 7 months ago

Hello, I've encountered the same issue as well.

I updated the root ssl, enabled proxy global mode, but still get this error:
2024-02-05_124848

And after that I checked the logs of my proxy, there weren't any logs related to spotify.

kuatroka commented 6 months ago

I'm getting this on a MAC when copy/pasting image

agenciaRSE commented 5 months ago

Same issue, Windows 10. From Spain. image

GeekYwl commented 5 months ago

@KRTirtho I logged out and then logged back in, and the sp_dc value changed, and it still reported an error even after submitting the new value. v3.6.0 Windows11 Mainland China

KRTirtho commented 5 months ago

In China you have to use a vpn/proxy

katorly commented 5 months ago

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 commented 4 months ago

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

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

KRTirtho commented 4 months ago

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 commented 4 months ago

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

katorly commented 4 months ago

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 commented 4 months ago

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