Closed JimmyRice closed 2 years ago
Thanks for reporting! Error code 4 stands for an internal error inside curl. Could you please provide a minimal example project with all your CMake stuff, so I can reproduce it?
Based on the following line I think something is wrong with the TLS configuration.
-- CA path only supported by OpenSSL, GnuTLS or mbed TLS. Set CURL_CA_PATH=none or enable one of those TLS backends.
And could you please paste the complete log from your CMake configure phase (cmake ..
)?
Hi! Thank you so much for taking the time to respond to me!
I have good news on my side, when I created a new sample project and tested it, I found it worked, so I reopened my simple console application and found that the requests were working. So there seem to be no more problems at the moment.
Thank you so much.
Description
I'm working on a simple console application, and an internal error has occurred when I'm requesting an API.
Code
Expected Behavior
Expect the request from the API server to be received correctly and output via
response.text
Actual Behavior
response.status_code
is 0response.error.code
is 4response.error.message
is emptyContext
I can't get a response from the API server
Your Environment
OS: macOS 12.4 (MacBook Pro, Intel version, 2020) curl: 7.80.0 CMake: 3.22.3 (with CLion)