jwilsson / spotify-web-api-php

A PHP wrapper for Spotify's Web API.
MIT License
867 stars 156 forks source link

getting uncaught error #260

Closed muhammadjan761 closed 1 year ago

muhammadjan761 commented 1 year ago

Fatal error: Uncaught SpotifyWebAPI\SpotifyWebAPIException: User not registered in the Developer Dashboard in /home/techtvto/public_html/clients/new/vendor/jwilsson/spotify-web-api-php/src/Request.php:59 Stack trace: #0 /home/techtvto/public_html/clients/new/vendor/jwilsson/spotify-web-api-php/src/Request.php(244): SpotifyWebAPI\Request->handleResponseError('User not regist...', 403) #1 /home/techtvto/public_html/clients/new/vendor/jwilsson/spotify-web-api-php/src/Request.php(132): SpotifyWebAPI\Request->send('GET', 'https://api.spo...', '', 'HTTP/2 403 \r\nca...') #2 /home/techtvto/public_html/clients/new/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(118): SpotifyWebAPI\Request->api('GET', '/v1/me', Array, Array) #3 /home/techtvto/public_html/clients/new/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(1673): SpotifyWebAPI\SpotifyWebAPI->sendRequest('GET', '/v1/me') #4 /home/techtvto/public_html/clients/new/spotify-login.php(17): SpotifyWebAPI\SpotifyWebAPI->me() #5 {main} thrown in /home/techtvto/public_html/clients/new/vendor/jwilsson/spotify-web-api-php/src/Request.php on line 59

jwilsson commented 1 year ago

Hey! You need to add the user(s) you wish to use with your Spotify app to its allow list, check our their docs for more info.