I'm building a Lumen API with OAuth2 authentication, i followed this tutorial : http://esbenp.github.io/2015/05/26/lumen-web-api-oauth-2-authentication/ but i'm getting an error :
"Fatal error: Maximum execution time of 60 seconds exceeded in C:\Users\user\Desktop\api\lumen\vendor\guzzlehttp\guzzle\src\Handler\CurlMultiHandler.php on line 99"
Guzzle's post method ( and get method too) doesn't work for me
$app->get('api', function() use ($app){
$client = new \GuzzleHttp\Client();
$response = $client->get('localhost:8000/api/hello');
return $response;
});
$app->get('api/hello', function() use ($app){
return "Hello";
});
It gives me the same errors
By going in the apache logs i don't find anything, where can i find the lumen logs ? Thanks
Hi,
The logs are located in lumen\storage\logs\ but it doesn't help me.
I tried the $client->get() method on "http://www.google.com/" it works well but when I want to make a GET or a POST request on my own API from my API I get a "Maximum execution time exceeded"
Is it because I try on localhost:8000 ?
With
Hi,
I solved my problem : it was because I was using
php artisan serve
I don't know why, but POST and GET requests don't work on my API
Example : making a GET request from localhost:8000/one to localhost:8000/two but if I make a request on http://google.fr/ or another website it works.
So I deployed it directly on localhost without using "php artisan serve"