From d78bc2702f906a817a3079b1cddcc67ec7d62190 Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Sun, 11 Aug 2024 23:26:39 +0100 Subject: [PATCH] troubleshooting --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 850cabe..0a1b69f 100644 --- a/README.md +++ b/README.md @@ -83,3 +83,13 @@ Use environment variables to specify a database, otherwise an sqlite database fi ### Admin Account Create an environment variable `SUPERUSER_IDS` and add comma separated Discord snowflake User IDs. When logged-in, these users will be able to access the admin panel. + +## Troubleshooring + +### Bad Request (400) + +Ensure your `HOST` environemtn variable matches the endpoint that you are accessing the web application from. + +### Server Error (500) - keyerror 'access_token' + +Ensure your environment variables for `DISCORD_OAUTH2_URL` and `DISCORD_REDIRECT_URL` are correct, using the correct endpoint for your application, otherwise discord will not return a response including an access token when requested.