Hello fellow modders,

Im stuck with a problem i have some while now. Right know i am trying to make a api call to this link https://api.coingecko.com/api/v3/ping

With a normal console application i cant get the response easily but wit the fivem scripting environment i cant manage to get the response.

I use the following code to make the call

public Server_core()
        {
            //EventHandlers["getWallet"] += new Action<Player, NetworkCallbackDelegate>(getWallet);
            //EventHandlers["checkWalletExistence"] += new Action<string, NetworkCallbackDelegate>(checkExistence);
            getCoins();
        }

        private async Task getCoins()
        {
            using (var client = new HttpClient())
            {
                var result = await client.GetAsync("https://api.coingecko.com/api/v3/ping");
                Console.WriteLine(await result.Content.ReadAsStringAsync());
            }
        }

the error im getting is as follows

Hope someone is willing to direct me in the right direction.

Regards!