I was looking for some help, I want to know how to get the VaRestSubsystem node that is in blueprints in c++.
When I use the blueprint node I get no warnings and everything works, when I use my code below it still works but it gives a warning in the log that I can't understand why.
Even though it works, I run a lot of json messages in my project and I don't want my dedicated server to be pushing a lot of warning messages into the log file.

The Error I get when I run in c++ is below:

My c++ header code has:
UPROPERTY()
UVaRestSubsystem* VSubsystem;
UPROPERTY(replicated, EditAnywhere, BlueprintReadWrite, Category = Database)
UVaRestRequestJSON* RequestBP;
UPROPERTY(replicated, EditAnywhere, BlueprintReadWrite, Category = Database)
UVaRestJsonObject* RequestObjectBP;
and my cpp code is:
VSubsystem = GEngine->GetEngineSubsystem<UVaRestSubsystem>();
RequestBP = VSubsystem->ConstructVaRestRequestExt(EVaRestRequestVerb::POST, EVaRestRequestContentType::x_www_form_urlencoded_url);
RequestObjectBP = VSubsystem->ConstructVaRestJsonObject();
As soon as the second line and third line in my cpp file runs it pops the warning error and I narrowed it down to those exact lines that make the warning log.
When I do the exact same thing using the blueprint nodes it doesn't pop up with this warning log because it is using the actual VaRestSubsytem Node.
So is my line:
VSubsystem = GEngine->GetEngineSubsystem<UVaRestSubsystem>();
not the same thing as using the blueprint node??
Thank you for your time.
When I use the blueprint node I get no warnings and everything works, when I use my code below it still works but it gives a warning in the log that I can't understand why.
Even though it works, I run a lot of json messages in my project and I don't want my dedicated server to be pushing a lot of warning messages into the log file.
The Error I get when I run in c++ is below:
My c++ header code has:
UPROPERTY()
UVaRestSubsystem* VSubsystem;
UPROPERTY(replicated, EditAnywhere, BlueprintReadWrite, Category = Database)
UVaRestRequestJSON* RequestBP;
UPROPERTY(replicated, EditAnywhere, BlueprintReadWrite, Category = Database)
UVaRestJsonObject* RequestObjectBP;
and my cpp code is:
VSubsystem = GEngine->GetEngineSubsystem<UVaRestSubsystem>();
RequestBP = VSubsystem->ConstructVaRestRequestExt(EVaRestRequestVerb::POST, EVaRestRequestContentType::x_www_form_urlencoded_url);
RequestObjectBP = VSubsystem->ConstructVaRestJsonObject();
As soon as the second line and third line in my cpp file runs it pops the warning error and I narrowed it down to those exact lines that make the warning log.
When I do the exact same thing using the blueprint nodes it doesn't pop up with this warning log because it is using the actual VaRestSubsytem Node.
So is my line:
VSubsystem = GEngine->GetEngineSubsystem<UVaRestSubsystem>();
not the same thing as using the blueprint node??
Thank you for your time.
Comment