spotube icon indicating copy to clipboard operation
spotube copied to clipboard

[Android] Cannot login

Open Dieal opened this issue 1 year ago • 17 comments

Describe the bug After inserting Client ID and Secret ID I get redirected to a page that asks me to allow Spotube application. When I press the Allow button I get a Timed Out page (localhost link) after waiting for at least 20 seconds. I've already added the localhost redirect, but it doesn't seem to work.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Login to Spotify'
  2. Insert credentials
  3. Submit and get redirected to Application's approval website
  4. Allow the Spotify application

Expected behavior I don't know, I think I should be logged in after allowing the spotify app

Screenshots IMG_20220726_020326_138.jpg

Screenshot_20220726-020209_Bromite.png)

Screenshot_20220726-020213_Bromite.png

Screenshot_20220726-020243_Bromite.png

Installation Source/Method APK Release on Github

Smartphone (please complete the following information):

  • Device: Pocophone F1
  • OS: LineageOS
  • Version: Android 11

Dieal avatar Jul 26 '22 00:07 Dieal

Tested on Linux, it works. It's an Android issue or it's my phone's fault

Dieal avatar Jul 26 '22 01:07 Dieal

Works on android. Have you added the redirect URI in your Spotify app like mentioned in the readme? http://localhost:4304/auth/spotify/callback

meinto avatar Aug 01 '22 09:08 meinto

I have the same problem, it doesn't work on Android or Linux

jvihczocizix avatar Aug 01 '22 13:08 jvihczocizix

@jvihczocizix also LinageOS and Android 11? I am on Android 12.

meinto avatar Aug 01 '22 13:08 meinto

I use GrapheneOS with Android 12.But for me it also didn't work with Linux Ubuntu.

jvihczocizix avatar Aug 01 '22 17:08 jvihczocizix

Works on android. Have you added the redirect URI in your Spotify app like mentioned in the readme? http://localhost:4304/auth/spotify/callback

Yes, in fact on Linux (which works) I used the same Spotify App that I used on Android

Dieal avatar Aug 01 '22 19:08 Dieal

@jvihczocizix Try with a different account & see if that works

KRTirtho avatar Aug 03 '22 03:08 KRTirtho

Does it now work cuz for me not, i have the same issue?

Xandorion avatar Aug 20 '22 18:08 Xandorion

Same problem, any suggestions?

k1m3rA avatar Aug 25 '22 17:08 k1m3rA

May be for some reason the dart server isn't getting started. It could be os restriction or something else running in the same port

KRTirtho avatar Aug 25 '22 17:08 KRTirtho

Is there a solution for?

Xandorion avatar Aug 28 '22 10:08 Xandorion

Currently, I don't have any idea why exactly this is happening as I've never encountered this kind of issue. Now, I can only help if someone already facing the problem can build and run the Spotube in debugging mode in their case device and submits the logs from the terminal while trying to logging in

KRTirtho avatar Aug 28 '22 15:08 KRTirtho

Same issue from my end

ArijitBh avatar Aug 28 '22 16:08 ArijitBh

Hello there. I have a similar problem on my Android 10 phone. I allowed Spotube to use my account over Spotify's website and I was redirected to the localhost link like it's supposed to be. That tells me "Authentication successful. Now Go back to Spotube". But when I go back, Spotube still just shows the client ID and secret I entered and the submit button. So nothing changed. Repeating the submission also didn't help. What can be done with this? I'd really like to try this app with the account. Thanks.

Yquas avatar Sep 03 '22 22:09 Yquas

The latest nightly should fix the localhost not found issue. Can you guys check?

KRTirtho avatar Sep 15 '22 03:09 KRTirtho

Hello, i installed the nightly build but it still ends in "ERR_CONNECTION_TIMED_OUT"

Xandorion avatar Sep 15 '22 12:09 Xandorion

Same here. The issue is not resolved yet. And I can't find a log file at the files directory to share either

On Thu, 15 Sep, 2022, 6:03 pm Oopsiedai, @.***> wrote:

Hello, i installed the nightly build but it still ends in "ERR_CONNECTION_TIMED_OUT"

— Reply to this email directly, view it on GitHub https://github.com/KRTirtho/spotube/issues/152#issuecomment-1248040430, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYNZCMXX5NB6U2Z2YBEFGXDV6MJSZANCNFSM54UCBF5A . You are receiving this because you commented.Message ID: @.***>

ArijitBh avatar Sep 15 '22 15:09 ArijitBh

I tried the Nightly build aswell and didn't fix the issue that seems simular to this

KemonoElite avatar Sep 29 '22 20:09 KemonoElite

Update to this.

For some reason when I did it the same as I did previously, type secret and client code enter wait for my browser to pop up, agreed, waited for the local host to say it took to long then restarted my phone then it magically had my playlist from spotify and allowed me to search.

I am not sure if this will work for others but this generally is what I did for it to magically work for me.

KemonoElite avatar Sep 30 '22 00:09 KemonoElite

Have got my Android client to work, both in the GitHub latest release (which has a random song disconnection issue that probably isn't tied to my broadband) and in the F-Droid one. What I did was forcing the browser it used to authenticate to read a desktop user agent string, respectively, a Windows and Linux referring, in their due positions. After some retries, although the "connection timed out" always appeared, I got back to the app and saw the affirmative login status.

kimi-builds avatar Oct 02 '22 00:10 kimi-builds

I've completely re-written the Authentication system/flow of Spotube. Now it's just as easy as Logging into official Spotify App No sh*t Redirect URLs, no stupid Client ID and Client Secrets 😤 In Mobile, Now it can be done using good'ol Email and Password :tada: :rocket: :fire:

For desktop, it's far simpler than the older system but still needs some manual copying and pasting Instead of using ClientID and ClientSecret it now uses official cookies. Which are easy to copy and paste The "Follow along the Guide" is also updated and shows the new, easy way to login in Spotube desktop

Everything is already available in the latest nightly and hopefully will be available in the next stable release

KRTirtho avatar Oct 03 '22 15:10 KRTirtho

Im so sorry, but i downloaded the last nightly build, i see that i can now login with normal Spotify Login but after the login on the Page it just shows u the options to open webplayer or account overview. It dont go back to spotube and if i go manually back nothing happens, no login :/

Xandorion avatar Oct 04 '22 14:10 Xandorion

You're in Germany and your locale is not english right?

KRTirtho avatar Oct 05 '22 03:10 KRTirtho

@Oopsiedai, try again with the latest nightly. It's fixed now and works for every region

KRTirtho avatar Oct 05 '22 06:10 KRTirtho

Now it works, was immideatley logged in as i started the app, now its good, thank you :)

Xandorion avatar Oct 05 '22 07:10 Xandorion

Works with the latest beta

On Wed, 5 Oct, 2022, 1:01 pm Oopsiedai, @.***> wrote:

Now it works, was immideatley logged in as i started the app, now its good, thank you :)

— Reply to this email directly, view it on GitHub https://github.com/KRTirtho/spotube/issues/152#issuecomment-1268057795, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYNZCMQK27TD3HXQWKTR57DWBUVD7ANCNFSM54UCBF5A . You are receiving this because you commented.Message ID: @.***>

ArijitBh avatar Oct 12 '22 12:10 ArijitBh

The new authentication Flow is now available in latest v2.5.0 :tada: :partying_face:

KRTirtho avatar Oct 13 '22 16:10 KRTirtho

Since this issue is finally resolved, I'm going to close it

KRTirtho avatar Oct 14 '22 04:10 KRTirtho

The user name or password is incorrect

mfyddti avatar Nov 10 '22 01:11 mfyddti

why?

mfyddti avatar Nov 10 '22 01:11 mfyddti

@mfyddti https://nightly.link/KRTirtho/spotube/workflows/spotube-nightly/build

Ramys avatar Nov 10 '22 03:11 Ramys