mirror of
https://github.com/akashrchandran/spotify-lyrics-api.git
synced 2026-04-27 10:05:53 +03:00
[GH-ISSUE #60] [Error] Potentially broken token varificion? #44
Labels
No labels
UPDATES
bug
bug
documentation
enhancement
hacktoberfest
help wanted
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-lyrics-api#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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->_get_latest_secret_key_version()#2/app/src/Spotify.php(136): SpotifyLyricsApi\Spotify->getServerTimeParams()#3/app/src/Spotify.php(184): SpotifyLyricsApi\Spotify->getToken()#4/app/api/index.php(27): SpotifyLyricsApi\Spotify->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->getToken()#2/app/api/index.php(27): SpotifyLyricsApi\Spotify->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)
@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.