mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-26 23:45:49 +03:00
[GH-ISSUE #233] Unknown Error On Callback #168
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#168
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 @amanuelanteneh on GitHub (Jun 15, 2021).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/233
I deployed an app using this library as a dependency to heroku and get this strange error message when trying to authenticate other users:
SpotifyWebAPI\SpotifyWebAPIException: An unknown error occurred. in /app/vendor/jwilsson/spotify-web-api-php/src/Request.php:59 Stack trace: #0 /app/vendor/jwilsson/spotify-web-api-php/src/Request.php(239): SpotifyWebAPI\Request->handleResponseError() #1 /app/vendor/jwilsson/spotify-web-api-php/src/Request.php(129): SpotifyWebAPI\Request->send() #2 /app/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(124): SpotifyWebAPI\Request->api() #3 /app/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(1556): SpotifyWebAPI\SpotifyWebAPI->sendRequest() #4 /app/callback.php(32): SpotifyWebAPI\SpotifyWebAPI->me() #5 {main}
The error seems to occur when I call the me() function after setting the access token. My auth.php is:
And my callback.php is:
I'm not sure what could be causing this as I followed the documentation on the authorization almost exactly. What's odd is that I can log in just fine but other users can't seem to and get this error.
@jwilsson commented on GitHub (Jun 15, 2021):
Hey!
Have you created your app with Spotify recently? I think this might be related to the changes they recently made around app modes. I created a new app and a new Spotify account and got the same error. Unfortunately, Spotify doesn't seem to give any better errors back so it's not possible to show something other than the general "An unknown error occurred".
I think what you need to do is adding new users in your Developer dashboard or make a request for Extended Quota Mode (it's all outlined in their blog post).
Hope this solves the issue!
@amanuelanteneh commented on GitHub (Jun 15, 2021):
That was the issue! For some reason my developer portal never updated with the new information. Thank you!