-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Could not authenticate when APP_DEBUG="false" (all apps) #567
Comments
Could you show me the response of the XHR request of the login or also the error logs to see whether there is a specific error. In general in debug mode many caches are disabled. |
I relised that the whole api crashes when debug is off so the webapp admin can't even contact the api. (I get white site indicating that PHP crashed mid generation) |
Ok, do you have any errors in the default PHP error log? You can also take a look at the |
Here is the log |
So in your |
I do have that set. I can normaly connect to the db in debug mode. |
I recently had a similar issue on a shared hosting Linux dist I thought maybe it's a cache problem and I tried:
Because I had no access so the server SSH I could execute these via It's a scary way and make sure to delete this file after anyone uses it, but I needed a fast way to send commands. <?php
$output=null;
$result=null;
//exec('composer clear-cache', $output, $result);
//exec('composer dump-autoload', $output, $result);
//exec('composer clearcache', $output, $result);
//exec('composer dump-autoload -o', $output, $result);
exec('composer', $output, $result);
echo json_encode(
array(
'data' =>
array(
'result' => $result,
),
'reply' => $output
)
);
?> Still had an issue.... Then I remembered it's not Laravel perhaps it's something like: it points to Renaming the file did nothing.... Then opening the file to see if there was some weird string or something I noticed if you put a Posting this here for future reference. Hopefully it helps someone in future. Example of fix (in my case)Fails to load APP_TENANT_ID=""
APP_PROJECT_KEY="23b765c92fcd51c6772d4b00339c82ff"
APP_URL="http://127.0.0.1/fusio/public"
APP_APPS_URL="http://127.0.0.1/fusio/public/apps"
APP_ENV="prod" #dev or prod
APP_DEBUG="false" #true or false
APP_CONNECTION="pdo-mysql://root:@localhost/fusio_db"
APP_MAILER="native://default"
APP_MESSENGER="doctrine://default"
APP_MAIL_SENDER=""
SDKGEN_CLIENT_ID=""
SDKGEN_CLIENT_SECRET=""
Works APP_TENANT_ID=""
APP_PROJECT_KEY="23b765c92fcd51c6772d4b00339c82ff"
APP_URL="http://127.0.0.1/fusio/public"
APP_APPS_URL="http://127.0.0.1/fusio/public/apps"
# dev or prod
APP_ENV="prod"
# true or false
APP_DEBUG="false"
APP_CONNECTION="pdo-mysql://root:@localhost/fusio_db"
APP_MAILER="native://default"
APP_MESSENGER="doctrine://default"
APP_MAIL_SENDER=""
SDKGEN_CLIENT_ID=""
SDKGEN_CLIENT_SECRET="" |
@Cale-Torino ok, I have also just added a commit to change the comment s. 155ec85 |
When I set .env variable
APP_DEBUG
tofalse
it stops accepting any logins.Everything works just fine with
APP_DEBUG
set totrue
.My .env
The text was updated successfully, but these errors were encountered: