You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GotError: unable to verify the first certificate
at onError (.../got/dist/source/request-as-event-emitter.js:139:29)
at handleRequest (.../got/dist/source/request-as-event-emitter.js:172:17)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at TLSSocket.onConnectSecure (_tls_wrap.js:1475:34)
at TLSSocket.emit (events.js:321:20)
at TLSSocket._finishInit (_tls_wrap.js:918:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:688:12) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
name: 'RequestError'
}
when setting the rejectUnauthorized option to true the script just exits without any output.
This was working as expected in got@9
Expected behavior
The response is returned
Code to reproduce
See above ;)
Checklist
I have read the documentation.
I have tried my code with the latest version of Node.js and Got.
The text was updated successfully, but these errors were encountered:
Describe the bug
When i set the
rejectUnauthorized
request option the script silently fails without error.Actual behavior
Running this script fails with the TLS error:
->
when setting the
rejectUnauthorized
option totrue
the script just exits without any output.This was working as expected in got@9
Expected behavior
The response is returned
Code to reproduce
See above ;)
Checklist
The text was updated successfully, but these errors were encountered: