-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Handling Throws New Error #42
Comments
Does PR #41 resolve your issue? I'm happy to merge the changes if you confirm that it resolves your problem. |
Maybe... I am going to test it and let you know soon. |
Hello @aerni , Yes, that PR #41 fixed my issue. I am now getting the Spotify API error message instead of the "property error on null". For example, now I see :
Which I expected since I tried to hit my throttle limit. I will be updating my version as soon as you merge it. Thanks |
Errors are not being handled correctly. When an error occurs with the API, this package creates another error instead of logging or presenting the API error.
ErrorException: Attempt to read property "error" on null in /var/www/html/vendor/aerni/laravel-spotify/src/SpotifyRequest.php:40
We don't know what Spotify API complained about, as the error was not handled.
Thanks for sharing this package.
The text was updated successfully, but these errors were encountered: