[DONE] HTTP call fails with "unable to verify the first certificate" error

[09:17:15.177] ... Error: unable to verify the first certificate

Is that something known?
I do a simple http.get request like this:

await http.get(
      `${var_url ?? ''}/users`,
      request_options
    );
1 Like

Is still an issue… What could be the reason? @Leo I will DM you the server name if you want to inspect the certificate.

1 Like

Hi @dirk_s,

thanks for sharing your issue. The error message comes from the HTTP client and indicates a configuration problem on the server side - so the remote API you are calling. This is not directly a Tape issue.

Our recommendation would be to consult the party operating that server and have them fix the certificate issue.

If a) that is not an option and b) you trust them to fix it soon, feel free to use the HTTP request flag ignoreInvalidCerts as a temporary solution:

await http.get("https://your-domain-with-misconfigured.cert", { ignoreInvalidCerts: true });

This should make the call succeed. Still, fixing the server side issue is our recommended solution. Don’t forget to remove the flag again, once a proper solution is in place.

Cheers
Tim

1 Like