Hey, so I've been trying to get my website up and running on here. It works; however, I get this SQL error after a few executes, and then the whole connection to the database disconnects - resulting in a fail.
Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2077, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/home/LeDiamant/mysite/app.py", line 107, in dashboard cursor.execute("SELECT value FROM level_settings WHERE guild = %s AND type = %s", (str(guild_id), "Level Disabled",)) psycopg2.OperationalError: SSL error: decryption failed or bad record mac
How would I fix this? I don't get this error anywhere else, running locally is fine. I make the connection to the database when the web app is started - I'm not sure if this is the way to do it or make a connection per user that goes onto the website.
Would it be a database issue (like Firewall) or a web app issue?