DiscordJS certificate expiry

Question:

I was trying to code a bit for my discord bot that I code using DiscordJS, but when I ran the code it returned an error saying that the certificate has expired.
Repl link:

https://replit.com/@Danx3mer/Paul-bot

code snippet
Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1676:34)
    at TLSSocket.emit (node:events:520:28)
    at TLSSocket.emit (node:domain:488:12)
    at TLSSocket._finishInit (node:_tls_wrap:1087:8) {
  code: 'CERT_HAS_EXPIRED'
}

Seems like a problem on discord’s or replit’s end; try running the code on your own device and see if it’s a problem with your repl.

1 Like

Users in other topics are reporting that this has already been resolved for them, is this the case for you @Danx3mer?

2 Likes

Hey! I am sorry for the late reply, yes the issue has been resolved. Thank you all for helping with this issue!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.