mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #32] Uncaught exception 'SpotifyWebAPI\SpotifyWebAPIException' #18
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#18
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 @BillyCallahan on GitHub (Apr 30, 2015).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/32
Hello,
I think I'm having the same issue that https://github.com/jwilsson/spotify-web-api-php/issues/29.
Here's my error:
So, when I launch index.php it asks me the authorization and when I say 'yes' I'm getting this.
I have an another page callback.php which is called once the user clicks on 'yes'.
These two pages only contain the code provided by you.
I tried to run it on both Linux and Windows :)
If you need anything, ask me !
Thanks in advance, it's really important for me to solve this problem 👍
Audric.
@jwilsson commented on GitHub (May 1, 2015):
Some code is appreciated :)
@BillyCallahan commented on GitHub (May 1, 2015):
Here it is :)
https://github.com/AudricManaud/SpotifyAPI
@jwilsson commented on GitHub (May 1, 2015):
Thanks!
I think your problem lies in a mismatch between the callback URI you've registered at Spotify and the one you're actually using.
In the screenshot, the URL seems to be
http://localhost/promus/callback.phpbut in the code you posted, the redirect URI ishttp://localhost/callback.php. Try changing one of them, either the registered URI at Spotify or move the files so they're placed where Spotify expects them.@BillyCallahan commented on GitHub (May 1, 2015):
Owwh I'm sorry that's a previous screenshot, I corrected it and it's still doesn't work:

@jwilsson commented on GitHub (May 1, 2015):
Alright, I've tried reproducing it but I can't find anything wrong with it.
Could you dump the whole response by adding something like
on line 126 of
Request.php, right after the lineand post the result here.
@BillyCallahan commented on GitHub (May 1, 2015):
Weird, it doesn't display anything at all...

@jwilsson commented on GitHub (May 1, 2015):
Hmm, try with
instead. But put it before the
line.
@BillyCallahan commented on GitHub (May 1, 2015):
There it is:

I got teamviewer if you want too :)
@jwilsson commented on GitHub (May 1, 2015):
Great, thanks!
At least we found the problem, cURL needs a local bundle of root certificates. Take a look at this answer: https://laracasts.com/discuss/channels/general-discussion/curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate/replies/37017 and restart your local server and it should work.
I hope to get a better fix for this into the library.
@BillyCallahan commented on GitHub (May 1, 2015):
Oh my god, it works thank you very much !
You've been so helpful to me 👍
If you need to run some tests on my computer to solve it for everyone, just contact me :)
Audric.
@jwilsson commented on GitHub (May 1, 2015):
Awesome!
Glad we figured it out :)
@rubenvdb commented on GitHub (Jun 12, 2015):
Seemed to be solved at first, but now stopped working again.
@jwilsson commented on GitHub (Jun 12, 2015):
@rubenvdb Could you pull down the
0.9.0branch, test with that code and then open a new issue with the error received.Thanks!