[GH-ISSUE #220] Last.fm invalid token #158

Closed
opened 2026-02-26 02:32:19 +03:00 by kerem · 5 comments
Owner

Originally created by @BernardGoldberger on GitHub (Feb 8, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/220

Good Evening
I'm not sure what I'm doing wrong but I keep getting an invalid toke page when trying to connect to last.fm

Whoops, looks like something went wrong.

1/1
HttpException in compiled.php line 1923:
Invalid token key.
in compiled.php line 1923
at Application->abort('500', 'Invalid token key.', array()) in helpers.php line 30
at abort('500', 'Invalid token key.') in LastfmController.php line 75
at LastfmController->callback(object(Request), object(Lastfm))
at call_user_func_array(array(object(LastfmController), 'callback'), array(object(Request), object(Lastfm))) in compiled.php line 9137
at Controller->callAction('callback', array(object(Request), object(Lastfm))) in compiled.php line 9199
at ControllerDispatcher->call(object(LastfmController), object(Route), 'callback') in compiled.php line 9179
at ControllerDispatcher->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9656
at Pipeline->then(object(Closure)) in compiled.php line 9180
at ControllerDispatcher->callWithinStack(object(LastfmController), object(Route), object(Request), 'callback') in compiled.php line 9167
at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\API\LastfmController', 'callback') in compiled.php line 8262
at Route->runController(object(Request)) in compiled.php line 8249
at Route->run(object(Request)) in compiled.php line 7977
at Router->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing{closure}(object(Request)) in GetUserFromToken.php line 38
at GetUserFromToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(GetUserFromToken), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9666
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9656
at Pipeline->then(object(Closure)) in compiled.php line 7978
at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 7969
at Router->dispatchToRoute(object(Request)) in compiled.php line 7959
at Router->dispatch(object(Request)) in compiled.php line 2381
at Kernel->Illuminate\Foundation\Http{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing{closure}(object(Request)) in compiled.php line 3183
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9666
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9656
at Pipeline->then(object(Closure)) in compiled.php line 2328
at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2312
at Kernel->handle(object(Request)) in index.php line 53

Originally created by @BernardGoldberger on GitHub (Feb 8, 2016). Original GitHub issue: https://github.com/koel/koel/issues/220 Good Evening I'm not sure what I'm doing wrong but I keep getting an invalid toke page when trying to connect to last.fm > Whoops, looks like something went wrong. > > 1/1 > HttpException in compiled.php line 1923: > Invalid token key. > in compiled.php line 1923 > at Application->abort('500', 'Invalid token key.', array()) in helpers.php line 30 > at abort('500', 'Invalid token key.') in LastfmController.php line 75 > at LastfmController->callback(object(Request), object(Lastfm)) > at call_user_func_array(array(object(LastfmController), 'callback'), array(object(Request), object(Lastfm))) in compiled.php line 9137 > at Controller->callAction('callback', array(object(Request), object(Lastfm))) in compiled.php line 9199 > at ControllerDispatcher->call(object(LastfmController), object(Route), 'callback') in compiled.php line 9179 > at ControllerDispatcher->Illuminate\Routing{closure}(object(Request)) > at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52 > at Pipeline->Illuminate\Routing{closure}(object(Request)) > at call_user_func(object(Closure), object(Request)) in compiled.php line 9656 > at Pipeline->then(object(Closure)) in compiled.php line 9180 > at ControllerDispatcher->callWithinStack(object(LastfmController), object(Route), object(Request), 'callback') in compiled.php line 9167 > at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\API\LastfmController', 'callback') in compiled.php line 8262 > at Route->runController(object(Request)) in compiled.php line 8249 > at Route->run(object(Request)) in compiled.php line 7977 > at Router->Illuminate\Routing{closure}(object(Request)) > at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52 > at Pipeline->Illuminate\Routing{closure}(object(Request)) in GetUserFromToken.php line 38 > at GetUserFromToken->handle(object(Request), object(Closure)) > at call_user_func_array(array(object(GetUserFromToken), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9666 > at Pipeline->Illuminate\Pipeline{closure}(object(Request)) > at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32 > at Pipeline->Illuminate\Routing{closure}(object(Request)) > at call_user_func(object(Closure), object(Request)) in compiled.php line 9656 > at Pipeline->then(object(Closure)) in compiled.php line 7978 > at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 7969 > at Router->dispatchToRoute(object(Request)) in compiled.php line 7959 > at Router->dispatch(object(Request)) in compiled.php line 2381 > at Kernel->Illuminate\Foundation\Http{closure}(object(Request)) > at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52 > at Pipeline->Illuminate\Routing{closure}(object(Request)) in compiled.php line 3183 > at CheckForMaintenanceMode->handle(object(Request), object(Closure)) > at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9666 > at Pipeline->Illuminate\Pipeline{closure}(object(Request)) > at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32 > at Pipeline->Illuminate\Routing{closure}(object(Request)) > at call_user_func(object(Closure), object(Request)) in compiled.php line 9656 > at Pipeline->then(object(Closure)) in compiled.php line 2328 > at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2312 > at Kernel->handle(object(Request)) in index.php line 53
kerem closed this issue 2026-02-26 02:32:19 +03:00
Author
Owner

@phanan commented on GitHub (Feb 9, 2016):

Make sure you have a valid Last.fm API key and secret.

<!-- gh-comment-id:181706148 --> @phanan commented on GitHub (Feb 9, 2016): Make sure you have a valid Last.fm API key and secret.
Author
Owner

@BernardGoldberger commented on GitHub (Feb 9, 2016):

I do, I tried 3 different new ones.

<!-- gh-comment-id:181845766 --> @BernardGoldberger commented on GitHub (Feb 9, 2016): I do, I tried 3 different new ones.
Author
Owner

@BernardGoldberger commented on GitHub (Feb 11, 2016):

I should also add that I tried an actual incorrect API and then I get a completely different invalid API key error from Last.fm

<!-- gh-comment-id:182678535 --> @BernardGoldberger commented on GitHub (Feb 11, 2016): I should also add that I tried an actual incorrect API and then I get a completely different invalid API key error from Last.fm
Author
Owner

@phanan commented on GitHub (Feb 11, 2016):

Can't say I'm able to reproduce this.

<!-- gh-comment-id:182825679 --> @phanan commented on GitHub (Feb 11, 2016): Can't say I'm able to reproduce this.
Author
Owner

@BernardGoldberger commented on GitHub (Feb 14, 2016):

I was able to figure out what the issue was.....
I noticed in the laravel.log the following error [2016-02-14 01:03:40] production.ERROR: GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in \koel\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:187 Stack trace:
To fix this all one needs to do is manually add the curl certificates, you can obtain them from here http://curl.haxx.se/ca/cacert.pem then save it and point to it in your php.ini file curl.cainfo = "C:\wamp64\bin\php\php7.0.3\extras\ssl\cacert.pem"
All is working now.

<!-- gh-comment-id:183786730 --> @BernardGoldberger commented on GitHub (Feb 14, 2016): I was able to figure out what the issue was..... I noticed in the laravel.log the following error `[2016-02-14 01:03:40] production.ERROR: GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in \koel\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:187 Stack trace:` To fix this all one needs to do is manually add the curl certificates, you can obtain them from here [http://curl.haxx.se/ca/cacert.pem](url) then save it and point to it in your php.ini file `curl.cainfo = "C:\wamp64\bin\php\php7.0.3\extras\ssl\cacert.pem"` All is working now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#158
No description provided.