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

Can't log in with spotify #1871

Closed
1 of 2 tasks
Szprej0 opened this issue Sep 11, 2024 · 7 comments
Closed
1 of 2 tasks

Can't log in with spotify #1871

Szprej0 opened this issue Sep 11, 2024 · 7 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Szprej0
Copy link

Szprej0 commented Sep 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The spotube opens as expected but when I try to log into Spotify no matter what I do the button won't do anything. I've tried reinstalling the app but it didn't fix my issue.

Expected Behavior

The Connect Spotify account should work

Steps to reproduce

  1. The app opened normally.
  2. I opened the settings
  3. I clicked on a connect Spotify button
  4. nothing happened

Operating System

Windows 23H2

Spotube version

v3.8.0

Installation source

GitHub Releases (Binary)

Additional information

Errors from logs

[2024-09-11 20:07:05.431897]---
PlatformException(0, WebView runtime not available, null, null)
#0
#1
StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648) MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334)

#2
WebviewWindow.create (package:desktop_webview_window/desktop_webview_window.dart:67)

#3
SettingsAccountSection.build.onLogin (package:spotube/pages/settings/sections/accounts.dart:58)

Self grab

  • I'm ready to work on this issue!
@Szprej0 Szprej0 added the bug Something isn't working label Sep 11, 2024
@Szprej0 Szprej0 changed the title Write the title here Can't log in with spotify Sep 11, 2024
@TheBlackReverand
Copy link

In link with #1867 I think

@intox-ai
Copy link

any solution?

@Szprej0
Copy link
Author

Szprej0 commented Sep 14, 2024

any solution?

no updates from anyone

@KRTirtho
Copy link
Owner

The Login process requires Microsoft Edge WebView2 Runtime to be installed. You don't have that

@KRTirtho KRTirtho added help wanted Extra attention is needed and removed bug Something isn't working labels Sep 15, 2024
@KRTirtho KRTirtho moved this to Backlog in Spotube Board Sep 15, 2024
@KRTirtho KRTirtho moved this from Backlog to Done in Spotube Board Sep 15, 2024
@KRTirtho KRTirtho added the bug Something isn't working label Sep 15, 2024
@KRTirtho
Copy link
Owner

From the next version we'll show a warning about this so user won't be confused

@Szprej0
Copy link
Author

Szprej0 commented Sep 15, 2024

after the 3.8.1 update everything works just fine thx guys.

@Szprej0 Szprej0 closed this as completed Sep 15, 2024
@marshel
Copy link

marshel commented Dec 4, 2024

Hi, same here.

Spottube 3.8.3
Win11 24H2
Edge WebView2 is installed

My thoughts..

  • Is it runnign firefox instead of edge?
  • If yes, is it because the popup blocker blocks Spotfy and Facebook credential allow window?
  • Is a bad request sent?
  • Change in SF api?

Log:

#747 _drawFrame (dart:ui/hooks.dart:283)



[2024-12-04 09:42:02.074305]---------------------
DioException [bad response]: This exception was thrown because the response has a status code of 401 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 401 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

#0 DioMixin.fetch (package:dio/src/dio_mixin.dart:509)

#1 CustomSpotifyEndpoints.getFriendActivity (package:spotube/services/custom_spotify_endpoints/spotify_endpoints.dart:113)

#2 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:348)


[2024-12-04 09:42:02.295139]---------------------
Error Code: 401
Valid user authentication required
#0 SpotifyApiBase.handleResponseWithBody (package:spotify/src/spotify_base.dart:282)
#1 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:256)

#2 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)

#3 Me.get (package:spotify/src/endpoints/me.dart:22)

#4 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:348)


[2024-12-04 09:42:02.302168]---------------------
Error Code: 404
Not Found
#0 SpotifyApiBase.handleResponseWithBody (package:spotify/src/spotify_base.dart:282)
#1 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:256)

#2 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)

#3 Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)

#4 FeaturedPlaylistsNotifier.fetch (package:spotube/provider/spotify/playlist/featured.dart:33)

#5 FeaturedPlaylistsNotifier.build (package:spotube/provider/spotify/playlist/featured.dart:44)

#6 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:348)


[2024-12-04 09:42:02.317700]---------------------
Error Code: 401
Valid user authentication required
#0 SpotifyApiBase.handleResponseWithBody (package:spotify/src/spotify_base.dart:282)
#1 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:256)

#2 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)

#3 CursorPages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:292)

#4 SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)


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

No branches or pull requests

5 participants