Skip to content

fix(domain): handle missing serverTime in Spotify ServerTimeResponse#213

Open
Eutalix wants to merge 2 commits intoLambada10:masterfrom
Eutalix:master
Open

fix(domain): handle missing serverTime in Spotify ServerTimeResponse#213
Eutalix wants to merge 2 commits intoLambada10:masterfrom
Eutalix:master

Conversation

@Eutalix
Copy link

@Eutalix Eutalix commented Feb 12, 2026

  • Fixed the MissingFieldException crash caused by Spotify removing the serverTime field from their API.
  • Updated WebPlayerToken.kt to make serverTime optional (defaults to 0), preventing the serialization error.
  • Verified that the app can now successfully fetch the access token and lyrics again.

- The Spotify internal API endpoint no longer returns the 'serverTime' field.
- Added default value to the data class property to prevent kotlinx.serialization.MissingFieldException.
- Updated SpotifyAPI to use device time if the server time is missing.
- Fixed authentication failing due to 0 timestamp.
@Eutalix
Copy link
Author

Eutalix commented Feb 12, 2026

  • Updated SpotifyAPI to use device time if the server time is missing.
  • Fixed authentication failing due to 0 timestamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant