OAuth2::ConnectionError, Failed to open TCP connection to discord.com:443 (execution expired)

I’ve been trying to solve this issue for days and not getting anywhere. I have discord oauth set up, when you click authorize in the discord oauth prompt, instead of being directed to the homepage, you’re redirected to a Oops page.

The error logs keep showing:
OAuth2::ConnectionError, Failed to open TCP connection to discord.com:443 (execution expired)

I couldn’t find this error being mentioned before so I’m hoping someone can help guide me on what a possible solution is for this error.