Unable to verify the first certificate, Discord API

Problem description:
I keep getting “unable to verify the first certificate” from “https://discord.com/api/oauth2/token” on replit. When running locally I do not get this error even when running on different devices.

Expected behavior:
No “unable to verify the first certificate” error

Actual behavior:

“unable to verify the first certificate”

Steps to reproduce:
make an axios request to “https://discord.com/api/oauth2/token

Bug appears at this link:
The replit in question is private as it has some tokens and other secretes

Browser/OS/Device:

Welcome, recently there has been lots of incidents involving discord bots, and nobody is quite sure what’s going on.

We’ve recently added a proxy and rate limiter to combat abuse and poor programming practices. Some programming languages or frameworks do not support looking in the default certificate store location, so my guess would be this is your issue.

What programming language are you using?

If you DM me a link to your Repl, I could also take a look.

2 Likes