Issue
I have a strange problem with httpClient. I am trying to make GET request to remote API. The cUrl is working perfectly from terminal, but the httpClient with the same request, is only going to timeout. I've created the httpClient using https://curl.olsh.me/ tool and set the wait time to 2 minutes. After the request is fired, it waits, but gets no response code, and goes to exception
2021-04-23 03:40:22.686 +01:00 [INF] {httpRequest}
2021-04-23 03:42:02.798 +01:00 [ERR] Exception Message : The operation has timed out.
Can you please make any guess what can be a problem. Thank you in advance
Solution
Thanks everyone who commented, especially to @jdweng . It gave me some idea where to search for the problem. So, the timeout problem was caused by TLS authentication. The root sertificates were not imported on server. After importing root sertificates, the problem was solved.
The bad thing is that it was impossible to figure out the exact problem from an exception text.
Answered By - Kattarina