mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #228] "Insufficient client scope" on live site search #162
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#162
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 @ghost on GitHub (Apr 25, 2021).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/228
EDIT: Sorry, title should be "Insufficient client scope" on live site using
getMultipleAudioFeaturesHi Jonathan,
I hope you're well.
I put my spotify app site on my live site today, and when I use
getMultipleAudioFeaturesI get this error:I am passing trackIDs in an array:
$AudioFeaturesAlbumTracks = $api->getMultipleAudioFeatures($array_track_ids)I am using these scopes:
The strange thing is that the same scopes work when I've been testing my app on my localhost IIS server, but not on my live IIS server.
It's a strange one!
Thanks
Jim
@ghost commented on GitHub (Apr 25, 2021):
I also tried with a much bigger list of scopes, but no luck:
I call the API via:
I have also tested with:
However, unfortunately changing those made no difference.
I call
getMultipleAudioFeatureslike this:The code errors before getting to the catch part - it is erroring / returning the message about invalid scopes on this line:
$AudioFeaturesAlbumTracks = $api->getMultipleAudioFeatures($array_track_ids);I can't see anything in the docs for the method referring to the correct scope to use.
Do you know if I can do any additional debugging to get to the bottom of what might be happening?
Thanks
Jim
@ghost commented on GitHub (Apr 26, 2021):
Hi Jonathan - I realised I wasn't using the most up to date version of your code.
Re. debugging - I should just have checked the PHP errors log which had all the info I needed:
[25-Apr-2021 22:40:54 Europe/London] PHP Fatal error: Uncaught Error: Call to undefined method SpotifyWebAPI\SpotifyWebAPI::getMultipleAudioFeatures() in C:\inetpub\wwwroot\site\info-track.php:192I had the most up to date code on localhost but not on the live site, so once the live site was up to date, problem solved.
Simple in the end!
Thanks
Jim