HTTPClient not connecting to server

I trying to connect to flask server to get a json file from it.
But the esp32 is not connecting to the server it did connect before but for some reason its not working
the server is running properly as I can check it by redirecting to the link

void getJson()
{
client.begin(serverurl);
client.addHeader(“Accept”, “application/json”);
int code = client.GET();
if (code)
{
Serial.print("The code is: ");
Serial.println(code);
jsonstring = client.getString();
Serial.print("the string is: ");
Serial.println(jsonstring.c_str());
}
else
{
Serial.print("Code not 1 it is: ");
Serial.println(code);
}
client.end();
}