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

bug in "Sort by tracks" feature #2043

Open
1 of 2 tasks
kingmadwik opened this issue Nov 2, 2024 · 0 comments
Open
1 of 2 tasks

bug in "Sort by tracks" feature #2043

kingmadwik opened this issue Nov 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kingmadwik
Copy link

Is there an existing issue for this? (Please read the description)

  • I have searched the existing issues

Current Behavior

Sort by newest additon as well as oldest addition features seem to be broken ( it doesnt do the sorting right - compared with spotify app). Sort by newest addition doesnt sort correctly.

Expected Behavior

It should sort by newest addition date but it isnt. Im on latest spotube version both on android and desktop

Steps to reproduce

(Open Any playlist) >(sort by tracks)>(by newest addition)

Logs

Logs
tform_dispatcher.dart:442)
#25     _dispatchPointerDataPacket (dart:ui/hooks.dart:262)

----------------------------------------
[2024-10-29 13:59:53.998902]---------------------
GoError: There is no GoRouterState above the current context. This method should only be called under the sub tree of a RouteBase.builder.
#0      GoRouterState.of (package:go_router/src/state.dart:124)
#1      ServiceUtils.navigate (package:spotube/utils/service_utils.dart:276)
#2      LinkText.build.<anonymous closure> (package:spotube/components/links/link_text.dart:35)
#3      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:351)
#4      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:656)
#5      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:313)
#6      BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:246)
#7      PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:703)
#8      PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)
#9      PointerRouter._dispatchEventToRoutes.<anonymous closure> (package:flutter/src/gestures/pointer_router.dart:143)
#10     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633)
#11     PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)
#12     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)
#13     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:501)
#14     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:481)
#15     RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:450)
#16     GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:426)
#17     GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:389)
#18     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:336)
#19     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:305)
#20     _rootRunUnary (dart:async/zone.dart:1415)
#21     _CustomZone.runUnary (dart:async/zone.dart:1308)
#22     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217)
#23     _invoke1 (dart:ui/hooks.dart:330)
#24     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:442)
#25     _dispatchPointerDataPacket (dart:ui/hooks.dart:262)

----------------------------------------
[2024-10-29 13:59:54.705314]---------------------
GoError: There is no GoRouterState above the current context. This method should only be called under the sub tree of a RouteBase.builder.
#0      GoRouterState.of (package:go_router/src/state.dart:124)
#1      ServiceUtils.pushNamed (package:spotube/utils/service_utils.dart:315)
#2      ArtistLink.build.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:spotube/components/links/artist_link.dart:52)
#3      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:351)
#4      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:656)
#5      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:313)
#6      BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:246)
#7      PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:703)
#8      PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)
#9      PointerRouter._dispatchEventToRoutes.<anonymous closure> (package:flutter/src/gestures/pointer_router.dart:143)
#10     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633)
#11     PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)
#12     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)
#13     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:501)
#14     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:481)
#15     RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:450)
#16     GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:426)
#17     GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:389)
#18     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:336)
#19     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:305)
#20     _rootRunUnary (dart:async/zone.dart:1415)
#21     _CustomZone.runUnary (dart:async/zone.dart:1308)
#22     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217)
#23     _invoke1 (dart:ui/hooks.dart:330)
#24     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:442)
#25     _dispatchPointerDataPacket (dart:ui/hooks.dart:262)

----------------------------------------
[2024-10-29 13:59:57.595389]---------------------
GoError: There is no GoRouterState above the current context. This method should only be called under the sub tree of a RouteBase.builder.
#0      GoRouterState.of (package:go_router/src/state.dart:124)
#1      ServiceUtils.navigate (package:spotube/utils/service_utils.dart:276)
#2      LinkText.build.<anonymous closure> (package:spotube/components/links/link_text.dart:35)
#3      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:351)
#4      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:656)
#5      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:313)
#6      BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:246)
#7      PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:703)
#8      PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)
#9      PointerRouter._dispatchEventToRoutes.<anonymous closure> (package:flutter/src/gestures/pointer_router.dart:143)
#10     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633)
#11     PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)
#12     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)
#13     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:501)
#14     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:481)
#15     RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:450)
#16     GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:426)
#17     GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:389)
#18     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:336)
#19     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:305)
#20     _rootRunUnary (dart:async/zone.dart:1415)
#21     _CustomZone.runUnary (dart:async/zone.dart:1308)
#22     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217)
#23     _invoke1 (dart:ui/hooks.dart:330)
#24     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:442)
#25     _dispatchPointerDataPacket (dart:ui/hooks.dart:262)

----------------------------------------
[2024-10-29 14:47:59.783492]---------------------
Error Code: 400
Bad request.
#0      SpotifyApiBase.handleResponseWithBody (package:spotify/src/spotify_base.dart:282)
#1      SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:256)
<asynchronous suspension>
#2      SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
<asynchronous suspension>
#3      Me.checkFollowing (package:spotify/src/endpoints/me.dart:61)
<asynchronous suspension>
#4      albumsIsSavedProvider.<anonymous closure>.<anonymous closure> (package:spotube/provider/spotify/album/is_saved.dart:7)
<asynchronous suspension>
#5      FutureHandlerProviderElementMixin.handleFuture.<anonymous closure>.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:348)
<asynchronous suspension>

----------------------------------------
[2024-10-29 15:08:02.955020]---------------------
GoError: There is no GoRouterState above the current context. This method should only be called under the sub tree of a RouteBase.builder.
#0      GoRouterState.of (package:go_router/src/state.dart:124)
#1      ServiceUtils.navigate (package:spotube/utils/service_utils.dart:276)
#2      LinkText.build.<anonymous closure> (package:spotube/components/links/link_text.dart:35)
#3      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:351)
#4      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:656)
#5      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:313)
#6      BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:246)
#7      PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:703)
#8      PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)
#9      PointerRouter._dispatchEventToRoutes.<anonymous closure> (package:flutter/src/gestures/pointer_router.dart:143)
#10     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633)
#11     PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)
#12     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)
#13     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:501)
#14     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:481)
#15     RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:450)
#16     GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:426)
#17     GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:389)
#18     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:336)
#19     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:305)
#20     _rootRunUnary (dart:async/zone.dart:1415)
#21     _CustomZone.runUnary (dart:async/zone.dart:1308)
#22     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217)
#23     _invoke1 (dart:ui/hooks.dart:330)
#24     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:442)
#25     _dispatchPointerDataPacket (dart:ui/hooks.dart:262)

----------------------------------------
[2024-10-29 19:37:37.858145]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0      Client.send (package:oauth2/src/client.dart:134)
<asynchronous suspension>
#1      BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
<asynchronous suspension>
#2      SpotifyApiBase._getImpl.<anonymous closure> (package:spotify/src/spotify_base.dart:211)
<asynchronous suspension>
#3      SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
<asynchronous suspension>
#4      SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
<asynchronous suspension>
#5      Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
<asynchronous suspension>
#6      SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)
<asynchronous suspension>

----------------------------------------
-----
[2024-10-29 19:37:38.030203]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0      Client.send (package:oauth2/src/client.dart:134)
<asynchronous suspension>
#1      BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
<asynchronous suspension>
#2      SpotifyApiBase._getImpl.<anonymous closure> (package:spotify/src/spotify_base.dart:211)
<asynchronous suspension>
#3      SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
<asynchronous suspension>
#4      SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
<asynchronous suspension>
#5      Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
<asynchronous suspension>
#6      SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)
<asynchronous suspension>

----------------------------------------
[2024-10-29 21:01:08.442384]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0      Client.send (package:oauth2/src/client.dart:134)
<asynchronous suspension>
#1      BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
<asynchronous suspension>
#2      SpotifyApiBase._getImpl.<anonymous closure> (package:spotify/src/spotify_base.dart:211)
<asynchronous suspension>
#3      SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
<asynchronous suspension>
#4      SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
<asynchronous suspension>
#5      Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
<asynchronous suspension>
#6      SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)
<asynchronous suspension>

----------------------------------------
--------------------
[2024-10-29 21:01:08.446493]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0      Client.send (package:oauth2/src/client.dart:134)
<asynchronous suspension>
#1      BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
<asynchronous suspension>
#2      SpotifyApiBase._getImpl.<anonymous closure> (package:spotify/src/spotify_base.dart:211)
<asynchronous suspension>
#3      SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
<asynchronous suspension>
#4      SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
<asynchronous suspension>
#5      Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
<asynchronous suspension>
#6      AlbumReleasesNotifier.fetch (package:spotube/provider/spotify/album/releases.dart:35)
<asynchronous suspension>
#7      AlbumReleasesNotifier.build (package:spotube/provider/spotify/album/releases.dart:50)
<asynchronous suspension>
#8      FutureHandlerProviderElementMixin.handleFuture.<anonymous closure>.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:348)
<asynchronous suspension>

----------------------------------------
[2024-10-29 21:01:08.481908]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0      Client.send (package:oauth2/src/client.dart:134)
<asynchronous suspension>
#1      BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
<asynchronous suspension>
#2      SpotifyApiBase._getImpl.<anonymous closure> (package:spotify/src/spotify_base.dart:211)
<asynchronous suspension>
#3      SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
<asynchronous suspension>
#4      SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
<asynchronous suspension>
#5      Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
<asynchronous suspension>
#6      FeaturedPlaylistsNotifier.fetch (package:spotube/provider/spotify/playlist/featured.dart:33)
<asynchronous suspension>
#7      FeaturedPlaylistsNotifier.build (package:spotube/provider/spotify/playlist/featured.dart:44)
<asynchronous suspension>
#8      FutureHandlerProviderElementMixin.handleFuture.<anonymous closure>.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:348)
<asynchronous suspension>

----------------------------------------
[2024-10-29 21:01:08.482954]---------------------
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)
<asynchronous suspension>
#1      CustomSpotifyEndpoints.getHomeFeed (package:spotube/services/custom_spotify_endpoints/spotify_endpoints.dart:131)
<asynchronous suspension>
#2      FutureHandlerProviderElementMixin.handleFuture.<anonymous closure>.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:348)
<asynchronous suspension>

----------------------------------------
[2024-11-02 14:23:04.811207]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0      Client.send (package:oauth2/src/client.dart:134)
<asynchronous suspension>
#1      BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
<asynchronous suspension>
#2      SpotifyApiBase._getImpl.<anonymous closure> (package:spotify/src/spotify_base.dart:211)
<asynchronous suspension>
#3      SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
<asynchronous suspension>
#4      SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
<asynchronous suspension>
#5      CursorPages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:292)
<asynchronous suspension>
#6      SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)
<asynchronous suspension>

----------------------------------------
[2024-11-02 14:23:04.836883]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0      Client.send (package:oauth2/src/client.dart:134)
<asynchronous suspension>
#1      BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
<asynchronous suspension>
#2      SpotifyApiBase._getImpl.<anonymous closure> (package:spotify/src/spotify_base.dart:211)
<asynchronous suspension>
#3      SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
<asynchronous suspension>
#4      SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
<asynchronous suspension>
#5      Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
<asynchronous suspension>
#6      SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)
<asynchronous suspension>

----------------------------------------
[2024-11-02 14:23:04.993795]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0      Client.send (package:oauth2/src/client.dart:134)
<asynchronous suspension>
#1      BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
<asynchronous suspension>
#2      SpotifyApiBase._getImpl.<anonymous closure> (package:spotify/src/spotify_base.dart:211)
<asynchronous suspension>
#3      SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
<asynchronous suspension>
#4      SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
<asynchronous suspension>
#5      Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
<asynchronous suspension>
#6      SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)
<asynchronous suspension>

----------------------------------------
[2024-11-02 14:28:17.693017]---------------------
HandshakeException: Handshake error in client (OS Error: 
	BAD_DECRYPT(../../../flutter/third_party/boringssl/src/crypto/cipher_extra/e_chacha20poly1305.c:259)
	DECRYPTION_FAILED_OR_BAD_RECORD_MAC(../../../flutter/third_party/boringssl/src/ssl/tls_record.cc:294))

----------------------------------------
[2024-11-02 14:40:10.299677]---------------------
No track currently
#0      SyncedLyricsNotifier.build (package:spotube/provider/spotify/lyrics/synced.dart:131)
<asynchronous suspension>
#1      FutureHandlerProviderElementMixin.handleFuture.<anonymous closure>.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:348)
<asynchronous suspension>

----------------------------------------

Operating System

Windows 11 latest version

Spotube version

3.8.3 +36

Installation source

GitHub Releases (Binary)

Additional information

No response

Self grab

  • I'm ready to work on this issue!
@kingmadwik kingmadwik added the bug Something isn't working label Nov 2, 2024
@kingmadwik kingmadwik changed the title bug in sorting bug in "Sort by tracks" feature Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant