Hi,
getting below error I can call any api exmaple.
var client = new RestClient(“https://sunrise-sunset-times.p.rapidapi.com/getSunriseAndSunset?date=2021-10-31&latitude=51.5072&longitude=-0.1276&timeZoneId=America%2FNew_York”);
var request = new RestRequest(Method.GET);
request.AddHeader(“X-RapidAPI-Key”, “e5f0cb296cmshcb10044f320a282p1d80e7jsn7eb6212ac8f9”);
request.AddHeader(“X-RapidAPI-Host”, “sunrise-sunset-times.p.rapidapi.com”);
IRestResponse response = client.Execute(request);
Below is error when i call in my code
{“The underlying connection was closed: An unexpected error occurred on a send.”}
Join in the discussion - add comment below: