Hi.
At the start of the game, I connect my game to a website to fetch stuff. But, since I upgraded to 4.7, the game has started to crash when there is no internet connection. The crash happens in editor as well as in the build. This is what the crash report looks like:
I have also tried stuff like FHttpModule::Get().SetHttpTimeout(2.0f); to do a timeOut. Here is what my request code looks like (the following code works fine when internet connection is established):
FSagRequest CurrentRequest; //Custom made struct
FString Dest;
FHttpModule::Get().SetHttpTimeout(2.0f);
TSharedRef<IHttpRequest> Request = FHttpModule::Get().CreateRequest();
Request->SetHeader("Content-Type", "text/html");
Request->SetURL(TEXT("http://xyz.com/abc.php"));
Request->SetVerb(TEXT("POST"));
CurrentRequest.AddURLPair("BuildNo", BuildVersion);
Request->SetContentAsString(CurrentRequest.TheData);
Request->OnProcessRequestComplete().BindUObject(this, &AHTTPHandlerActor::OnResponseReceivedQuotes);
if (!Request->ProcessRequest())
{
return false;
}
return true;
Any help would be greatly appreciated