KRTirtho / spotube

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

Endless loading upon launching desktop app #1025

Open CodeShakingSheep opened 10 months ago

CodeShakingSheep commented 10 months ago

Is there an existing issue for this?

Current Behavior

When opening Spotube it just loads endlessly. I haven't even logged in to Spotify.

Expected Behavior

Spotube should finish loading and be usable.

Steps to reproduce

  1. Just launch the app.

Operating System

Linux Ubuntu derivative (Zorin 17 Pro)

Spotube version

3.4.0

Installation source

Flathub (Flatpak)

Additional information

Here are relevant logs.

------- CUSTOM INFO -------
======================================================================
============================== CATCHER 2 LOG ==============================
Crash occurred on 2024-01-05 23:57:19.060578

------- DEVICE INFO -------
name: GNOME
version: 44 (Flatpak runtime)
id: org.gnome.Platform
idLike: null
versionCodename: null
versionId: 44
prettyName: GNOME 44 (Flatpak runtime)
buildId: null
variant: null
variantId: null
machineId: 9638ecc236204733b0cb7c66ac7682d7

------- APP INFO -------
environment: release
version: 3.4.0
appName: spotube
buildNumber: 27
packageName: spotube

---------- ERROR ----------
FormatException: Invalid date format
2024-01-03 23:02:58.9674---

------- STACK TRACE -------
#0      DateTime.parse (dart:core/date_time.dart:358)
#1      LogsPage.parseLogs.<anonymous closure>.<anonymous closure> (package:spotube/pages/settings/logs.dart:32)
#2      MappedIterable.elementAt (dart:_internal/iterable.dart:385)
#3      ListIterator.moveNext (dart:_internal/iterable.dart:354)
#4      WhereIterator.moveNext (dart:_internal/iterable.dart:450)
#5      Iterable.join (dart:core/iterable.dart:460)
#6      LogsPage.parseLogs.<anonymous closure> (package:spotube/pages/settings/logs.dart:40)
#7      MappedIterable.elementAt (dart:_internal/iterable.dart:385)
#8      ListIterator.moveNext (dart:_internal/iterable.dart:354)
#9      WhereIterator.moveNext (dart:_internal/iterable.dart:450)
#10     new _GrowableList._ofOther (dart:core-patch/growable_array.dart:202)
#11     new _GrowableList.of (dart:core-patch/growable_array.dart:152)
#12     new List.of (dart:core-patch/array_patch.dart:39)
#13     Iterable.toList (dart:core/iterable.dart:497)
#14     LogsPage.parseLogs (package:spotube/pages/settings/logs.dart:49)
#15     LogsPage.build.<anonymous closure>.<anonymous closure> (package:spotube/pages/settings/logs.dart:66)
<asynchronous suspension>

------- CUSTOM INFO -------
======================================================================

This is how it looks like image

KRTirtho commented 10 months ago

Unfortunately, due to recent popularity rise and user increase all the Spotify public clientIds and clientSecrets are in heavy usage, thus throwing API quota exceeded error every time. You can log in with your Spotify account, and it'll start to work.

CodeShakingSheep commented 10 months ago

Thanks for your fast reply @KRTirtho . I logged in with my Spotify account and it works now. Awesome! :) For the sake of usability I would suggest to add a message about that if loading times out.

Zedisverydead commented 9 months ago

Could you be more specific? My Google TV Chromecast doesn't let me reach the log in option, just freezes at start and remote doen't respond

KRTirtho commented 9 months ago

Android TV support isn't there yet. The app opens but Focus traversal and remote button based navigation doesn't work as underlying Flutter framework still doesn't support it

lemayian-tech commented 9 months ago

thanks KRTirtho! i absolutely love the app

Zedisverydead commented 9 months ago

Thank you for your answer and your awesome work. Just dreaming about an android TV versión, It looks amazing in a big screen too. Fantastic app KRThirtho. Thank you!

khlsvr commented 8 months ago

I have a related problem in that after logging in and everything working fine, then the next day or two when I come back, the problem comes back. The settings page has "log out" button which by clicking I can log out and then login back in by going through the tedious process of obtaining the sp_dc and then it works again.

How can I stay logged in properly without having to go through the sp_dc process so often?

numfin commented 8 months ago

Unable to login in android app too. 403

Zedisverydead commented 8 months ago

Maybe a bit stupid, I didn't try yet but thinking about connecting a bluetooth keynoard+mouse to Chromecast and log in using them because just remote is not responding. Once you logged in maybe everything works fine in Google TV...