500 Internal Server Error with Socialite Google when calling user () [closed]

-2

I break the connection on the line:

$user = Socialite::driver('google')->user();

All the settings are correct because in my local XAMPP server works perfectly; but right now I am migrating it to my server and it returns error in that part.

Yesterday it worked once but it does not want anymore, when it redirects it sends me Error 500 Internal Server Error.

If I put a try , I'll throw it out.

    
asked by Ulises Núñez Moreno 30.11.2016 в 20:26
source

1 answer

-1

You should always develop looking at the logs to have everything checked in case of failure. Failures 500 is usually an error before or during the execution of Laravel, which does not reach the framework log, so if you are looking at it, you will not see the failure.

Suggestion, always review in this order:

1) apache access.log, to know if it entered your web server, with what parameters, if doing POST or GET, etc.

2) apache error.log, there you will see the bug at the web server level, many times you will see an error there and will not see it in the laravel log.

3) php_errors.log, if you have configured to send the errors from your php.ini

4) project / storage / logs / laravel.log, the log of your project generated by Laravel.

Check these paths and you will see the concrete error where it is failing by 500

    
answered by 02.12.2016 / 14:37
source