#error 500

1 messages · Page 1 of 1 (latest)

solar palm
#

I am getting a 500 error when trying to connect to discord, how do I fix it?

urban sundialBOT
stiff tusk
#

Please, send logs

solar palm
urban sundialBOT
# solar palm https://pteropaste.com/06f7lpyv2osa

It seems that you haven't set up discord 0auth correctly, but fear not, the docs come to the rescue! https://CtrlPanel.gg/docs/Installation/additional-configuration#discord-auth

Extra information about URL Formatting
Any URL saved in your settings should never end with a /slash; CtrlPanel adds this / automatically to any URL, adding an extra
/ will break the URL!

GOOD Example:
https://CtrlPanel.gg
BAD EXAMPLE:
https://CtrlPanel.gg/

When configuring discord-auth, we will automatically use your APP_URL to create the appropriate URLs needed for discord-0auth. Make sure your URLs are correct!

When using SSL-Encryption (https://) double-check that all your URLs start with https:// instead of http://

After editing the .env File you have to clear the Cache:

php artisan cache:clear
php artisan config:clear
solar palm
urban sundialBOT
# solar palm https://pteropaste.com/vt2lb6ip7jb8

It seems that you haven't set up discord 0auth correctly, but fear not, the docs come to the rescue! https://CtrlPanel.gg/docs/Installation/additional-configuration#discord-auth

Extra information about URL Formatting
Any URL saved in your settings should never end with a /slash; CtrlPanel adds this / automatically to any URL, adding an extra
/ will break the URL!

GOOD Example:
https://CtrlPanel.gg
BAD EXAMPLE:
https://CtrlPanel.gg/

When configuring discord-auth, we will automatically use your APP_URL to create the appropriate URLs needed for discord-0auth. Make sure your URLs are correct!

When using SSL-Encryption (https://) double-check that all your URLs start with https:// instead of http://

After editing the .env File you have to clear the Cache:

php artisan cache:clear
php artisan config:clear
solar palm
#

[2023-07-26 23:06:04] production.ERROR: Client error: POST https://discord.com/api/oauth2/token resulted in a 401 Unauthorized response:
{"error": "invalid_client"}
{"userId":2,"exception":"[object] (GuzzleHttp\Exception\ClientException(code: 401): Client error: POST https://discord.com/api/oauth2/token resulted in a 401 Unauthorized response:
{"error": "invalid_client"}
at /var/www/controlpanel/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113)
[stacktrace]

solar palm
urban sundialBOT
solar palm
#

in which file?

stiff tusk
#

/var/www/controlpanel/.env

solar palm
#

There is no

stiff tusk
#

This is a hidden file, enable the display of hidden files in your file manager

#

Or use nano

solar palm
#

ok