'Covid Tracker using M5StickC Plus

I'm doing a covid tracker in M5Stick C Plus. I'm referring to the code in https://www.hackster.io/niyazthalappil/covid-19-real-time-data-monitor-7b43e5. The output of the serial shows that M5Stick C cannot connect to the HTTP link given err = -1. Does anyone know what modification should I make?

err = http.get("/coronavirus/country/" + sCountry +"/");
  if (err == 0)
  {
    //Serial.println("Requesting ok");
  }
    else
    {    
      Serial.print("Getting response failed: ");
      Serial.println(err);
    }



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source