usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
28.01k stars 1.3k forks source link

cryptic error message when request fails SSL cert validation #2128

Open crosbyb opened 7 months ago

crosbyb commented 7 months ago

I have checked the following:

Describe the bug

Bruno v1.13.1 running on Windows

When the "SSL/TLS Certificate Validation" setting is enabled and I send a request to an endpoint with an untrusted certificate, I get a cryptic message in the UI:

Error invoking remote method 'send-http-request': TypeError: Cannot read properties of undefined (reading 'data')

It would be great to instead get a message indicating that the server certificate was untrusted instead.

I confirmed this as a cert validation issue by disabling "SSL/TLS Certificate Validation" setting, after which the request succeeded.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

bruno-ssl-cert-validation-failure-cryptic-error

thegitty commented 7 months ago

probably the same issue: https://github.com/usebruno/bruno/issues/2107

haagtobias commented 7 months ago

I am facing the same issue.