Sunrise Sunset Times

FREEMIUM
By Macca895 | Updated a month ago | Weather
Popularity

9.4 / 10

Latency

798ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Getting error when call api

Rapid account: Serviceproviderpk
serviceproviderpk
2 years ago

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:

Login / Signup to post new comments