Why am I getting the 'unable to verify the first certificate' error with Axios when making HTTPS requests?

Question

Grade: Education Subject: Support
Why am I getting the 'unable to verify the first certificate' error with Axios when making HTTPS requests?
Asked by:
106 Viewed 106 Answers

Answer (106)

Best Answer
(293)
The 'unable to verify the first certificate' error in Axios typically arises when the server's SSL/TLS certificate isn't trusted by your system's root certificate authorities. This often happens if the certificate is self-signed, signed by a private CA, or the certificate chain is incomplete.