#StackBounty: #windows-10 #networking #google-chrome #dns Chrome and Spotify app can't connect

Bounty: 300

I’m having this really weird problem on my computer that I can’t seem to wrap my head around. Occasionally (and almost always after a reboot), the spotify app can’t seem to connect to it’s servers. When this happens, Chrome is also affected, and it affects all known websites related to Spotify (their web page, web player, their community etc, basically all of *.spotify.com).

This is what it looks like, note the empty remote address column, which makes me suspect a DNS problem.

network tab of Chrome

Now, after a while, this seems to "fix" itself, but it takes like 5-10 minutes or so. Meanwhile, Brave browser (which is basically chrome in disguise) works fine, so does Invoke-WebRequest from powershell. Running ipconfig /flushdns and restarting Chrome does nothing.

I do know that the Spotify app does use the Chrome engine udner the hood, but I would expect it to run it’s own bundled engine, and not my installed Chrome? So why do they affect eachother? Also, when this problem stops, it seems to stop simultaneously for both apps.

One suspicion I had, was that it is IPv6 that is buggering me. Spotify actually resolves IPv6 addresses, and I don’t have IPv6. However, I did disable IPv6 on my wifi adapter, but to no avail.

I’ve also verified that Chrome and spotify are both allowed through windows firewall.

I’m kind of stuck in my troubleshooting, and some new ideas would be welcome. Also, Spotify is the only known service that seems to have this problem, which is also strange.

EDIT: I’ve noticed that this affects some more sites. plex.tv, as well as the Netflix app, suffer from the same problem. When I can’t visit these sites, other sites are fine, like github.com, google.com, AWS console etc.

I’m stumped. I’ve managed to start the debug logger in Chrome, and when requesting a url that fails, I get this:

[15564:26264:0704/214452.685:VERBOSE1:network_delegate.cc(32)] NetworkDelegate::NotifyBeforeURLRequest: https://plex.tv/
[33512:27416:0704/214452.735:INFO:cpu_info.cc(53)] Available number of cores: 8
[9692:25292:0704/214454.563:VERBOSE1:cast_socket.cc(220)] [192.168.0.148:8009, auth=SSL_VERIFIED] Connect readyState = ReadyState::NONE
[9692:25292:0704/214454.563:VERBOSE1:cast_socket.cc(379)] [192.168.0.148:8009, auth=SSL_VERIFIED] DoTcpConnect
[9692:25292:0704/214454.607:VERBOSE1:cast_socket.cc(393)] [192.168.0.148:8009, auth=SSL_VERIFIED] DoTcpConnectComplete: 0
[9692:25292:0704/214454.607:VERBOSE1:cast_socket.cc(410)] [192.168.0.148:8009, auth=SSL_VERIFIED] DoSslConnect
[15564:26264:0704/214454.622:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
[9692:25292:0704/214454.622:VERBOSE1:cast_socket.cc(433)] [192.168.0.148:8009, auth=SSL_VERIFIED] DoSslConnectComplete: -101
[9692:25292:0704/214454.622:VERBOSE1:cast_socket.cc(653)] [192.168.0.148:8009, auth=SSL_VERIFIED] SetErrorState ChannelError::AUTHENTICATION_ERROR
[9692:25292:0704/214454.622:VERBOSE1:cast_socket.cc(575)] DoConnectCallback (error_state = ChannelError::AUTHENTICATION_ERROR)
[9692:25292:0704/214454.622:VERBOSE1:cast_socket.cc(615)] [192.168.0.148:8009, auth=SSL_VERIFIED] Close ReadyState = ReadyState::CONNECTING
[9692:25292:0704/214454.622:VERBOSE1:cast_socket.cc(220)] [192.168.0.148:8009, auth=SSL_VERIFIED] Connect readyState = ReadyState::NONE
[9692:25292:0704/214454.622:VERBOSE1:cast_socket.cc(379)] [192.168.0.148:8009, auth=SSL_VERIFIED] DoTcpConnect
[9692:25292:0704/214454.626:VERBOSE1:cast_socket.cc(393)] [192.168.0.148:8009, auth=SSL_VERIFIED] DoTcpConnectComplete: 0
[9692:25292:0704/214454.627:VERBOSE1:cast_socket.cc(410)] [192.168.0.148:8009, auth=SSL_VERIFIED] DoSslConnect
[15564:26264:0704/214454.632:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
[9692:25292:0704/214454.633:VERBOSE1:cast_socket.cc(433)] [192.168.0.148:8009, auth=SSL_VERIFIED] DoSslConnectComplete: -101
[9692:25292:0704/214454.633:VERBOSE1:cast_socket.cc(653)] [192.168.0.148:8009, auth=SSL_VERIFIED] SetErrorState ChannelError::AUTHENTICATION_ERROR
[9692:25292:0704/214454.633:VERBOSE1:cast_socket.cc(575)] DoConnectCallback (error_state = ChannelError::AUTHENTICATION_ERROR)
[9692:25292:0704/214454.633:VERBOSE1:cast_socket.cc(615)] [192.168.0.148:8009, auth=SSL_VERIFIED] Close ReadyState = ReadyState::CONNECTING

The 192.168.0.148 is a Chromecast on my network, and those errors might be unrelevant, but the error line is interesting:

[15564:26264:0704/214454.632:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101

I don’t understand why I would get SSL error in multiple applications, which after a while just goes away. Also, why does it only affect some applications, and not all? (Brave, for instance)


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.