#Error unable to verify the first certificate

27 messages · Page 1 of 1 (latest)

bronze minnow
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

hasty nebula
#

Are you using any proxy? Is that a school or work network?

rugged acorn
#

No proxy, vpn or anything

#

No firewall problems

#

Discord token is valid

#

Its also not Anti-virus

#

I already tried npm packages, google/stack-overflow and #djs-help-v14 i saw that many people have the same problem and theres no working fix

#

Well this fixes the error:

process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

But its very unsecure from what i've looked up so i don't wane risk it

hasty nebula
#

Yeah that's not how that's supposed to work, no

rugged acorn
#

So yeah i need someone to help me fix it

#

Should i try updating my node version?

balmy inlet
#

Or your root certificate store. What OS are you running on?

rugged acorn
balmy inlet
rugged acorn
#

On a repl container

#

The wierd thing is

#

The bot worked great with no problems for the last 2 weeks

#

I reinstalled the nix env and now its fixed

#

Ok its fixed now thanks for you help
@balmy inlet
@hasty nebula

#

I'l close this post

hasty nebula
#

So is that just repl issue?

#

Wonderful.

rugged acorn
#

And yeah djs uses http so thats why the login Error: unable to verify the first certificate

#

So to fix it just reinstall node.js

hasty nebula
#

🤔