New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UNABLE_TO_VERIFY_LEAF_SIGNATURE just to some requests to same server #4847
Comments
I am facing the same issue: I have set Axios Log is as below:
|
setting |
In my case I tried it with "x" and it already works but you don't want it to apply to the entire environment, only to those requests. In modules like request, or node-fetch it works correctly passing the instance of https.Agent. |
Im becoming crazy with this error, do you get any update about the error guys? |
no update?? |
Describe the issue
Axios is throwing
UNABLE_TO_VERIFY_LEAF_SIGNATURE
just for some requests to the same server usingrejectUnauthorized: false
Example Code
I have a method
sendRequest
as follows:I'm using that method to send requests to an Apache Guacamole API that is being served with
https
(port 443) using a Kaspersky Anti-Virus Personal Root Certificate.Firstly, implemented a request to get a token (
POST /api/token
) and got SSL errors, so then added thehttps.Agent
withrejectUnauthorized: false
and workarounded that issue.However, now I implemented another request to invalidate that token (
DELETE /api/token/:token
) and I'm getting this error even with therejectUnauthorized: false
:Both requests are made to the same server, so I don't understand why the first success and the second don't. There is not a proxy nor anything strange that could redirect the request between my code and the Guacamole server.
Launching my code with
NODE_TLS_REJECT_UNAUTHORIZED=0
env variable seems to fix the issue, but disables TLS everywhere, which is not desired.Expected behavior, if applicable
To the request to happen without TLS errors, due to the
rejectUnauthorized: false
Environment
https
is version 1.0.0Additional context/Screenshots
Launching my code with
NODE_TLS_REJECT_UNAUTHORIZED=0
env variable seems to fix the issue, but disables TLS everywhere, which is not desired.The text was updated successfully, but these errors were encountered: