Error: cURL request failed - getaddrinfo() thread failed to start