[GH-ISSUE #60] [Error] Potentially broken token varificion? #123

Open
opened 2026-03-13 21:15:57 +03:00 by kerem · 1 comment
Owner

Originally created by @MagicBOTAlex on GitHub (Jan 19, 2026).
Original GitHub issue: https://github.com/akashrchandran/spotify-lyrics-api/issues/60

The error

<br/><b>Warning</b>: file_get_contents(https: //raw.githubusercontent.com/Thereallo1026/spotify-secrets/refs/heads/main/secrets/secrets.json): Failedtoopenstream: HTTPrequestfailed!HTTP/1.1404NotFoundin<b>/app/src/Spotify.php</b>online<b>37</b><br/><br/><b>Notice</b>: Onlyvariablesshouldbepassedbyreferencein<b>/app/src/Spotify.php</b>online<b>37</b><br/><br/><b>Warning</b>: Undefinedvariable$chin<b>/app/src/Spotify.php</b>online<b>167</b><br/><br/><b>Fatalerror</b>: UncaughtTypeError: end(): Argument#1($array)mustbeoftypearray, nullgivenin/app/src/Spotify.php: 37Stacktrace: #0/app/src/Spotify.php(37): end(NULL)#1/app/src/Spotify.php(104): SpotifyLyricsApi\Spotify-&gt;_get_latest_secret_key_version()#2/app/src/Spotify.php(136): SpotifyLyricsApi\Spotify-&gt;getServerTimeParams()#3/app/src/Spotify.php(184): SpotifyLyricsApi\Spotify-&gt;getToken()#4/app/api/index.php(27): SpotifyLyricsApi\Spotify-&gt;checkTokenExpire()#5{ main }NextTypeError: curl_close(): Argument#1($handle)mustbeoftypeCurlHandle, nullgivenin/app/src/Spotify.php: 167Stacktrace: #0/app/src/Spotify.php(167): curl_close(NULL)#1/app/src/Spotify.php(184): SpotifyLyricsApi\Spotify-&gt;getToken()#2/app/api/index.php(27): SpotifyLyricsApi\Spotify-&gt;checkTokenExpire()#3{ main }thrownin<b>/app/src/Spotify.php</b>online<b>167</b><br/>

Solution

Deleting these lines fixes the problem, so Idk but i thought a issue ticket would be good anyways. (./api/fileIndex.php)

Image
Originally created by @MagicBOTAlex on GitHub (Jan 19, 2026). Original GitHub issue: https://github.com/akashrchandran/spotify-lyrics-api/issues/60 # The error `<br/><b>Warning</b>: file_get_contents(https: //raw.githubusercontent.com/Thereallo1026/spotify-secrets/refs/heads/main/secrets/secrets.json): Failedtoopenstream: HTTPrequestfailed!HTTP/1.1404NotFoundin<b>/app/src/Spotify.php</b>online<b>37</b><br/><br/><b>Notice</b>: Onlyvariablesshouldbepassedbyreferencein<b>/app/src/Spotify.php</b>online<b>37</b><br/><br/><b>Warning</b>: Undefinedvariable$chin<b>/app/src/Spotify.php</b>online<b>167</b><br/><br/><b>Fatalerror</b>: UncaughtTypeError: end(): Argument#1($array)mustbeoftypearray, nullgivenin/app/src/Spotify.php: 37Stacktrace: #0/app/src/Spotify.php(37): end(NULL)#1/app/src/Spotify.php(104): SpotifyLyricsApi\Spotify-&gt;_get_latest_secret_key_version()#2/app/src/Spotify.php(136): SpotifyLyricsApi\Spotify-&gt;getServerTimeParams()#3/app/src/Spotify.php(184): SpotifyLyricsApi\Spotify-&gt;getToken()#4/app/api/index.php(27): SpotifyLyricsApi\Spotify-&gt;checkTokenExpire()#5{ main }NextTypeError: curl_close(): Argument#1($handle)mustbeoftypeCurlHandle, nullgivenin/app/src/Spotify.php: 167Stacktrace: #0/app/src/Spotify.php(167): curl_close(NULL)#1/app/src/Spotify.php(184): SpotifyLyricsApi\Spotify-&gt;getToken()#2/app/api/index.php(27): SpotifyLyricsApi\Spotify-&gt;checkTokenExpire()#3{ main }thrownin<b>/app/src/Spotify.php</b>online<b>167</b><br/>` ## Solution Deleting these lines fixes the problem, so Idk but i thought a issue ticket would be good anyways. (./api/fileIndex.php) <img width="829" height="357" alt="Image" src="https://github.com/user-attachments/assets/1bad021c-17d5-48ed-b1ee-d6e937d588c9" />
Author
Owner

@akashrchandran commented on GitHub (Jan 24, 2026):

It looks like the issue is fixed. The secrets fetching URL was down, but it should be working fine now.

<!-- gh-comment-id:3794890796 --> @akashrchandran commented on GitHub (Jan 24, 2026): It looks like the issue is fixed. The secrets fetching URL was down, but it should be working fine now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-lyrics-api#123
No description provided.