When I tried to create a session, it poped up the error message:
Authorization Bearer is empty
My code is:
void UABUnrealTestGameInstance::CreateGameSession()
{
AccelByte::FApiClientPtr ApiClient = AccelByte::FMultiRegistry::GetApiClient();
FAccelByteModelsV2GameSessionCreateRequest Request;
Request.ConfigurationName = "5to5"; // MANDATORY
ApiClient->Session.CreateGameSession(Request, THandler<FAccelByteModelsV2GameSession>::CreateLambda( [&](const FAccelByteModelsV2GameSession &Result)
{
UE_LOG(LogTemp, Warning, TEXT("### Session successfuly created!"));
UE_LOG(LogTemp, Warning, TEXT("### Session ID: %s"), *(Result.ID));
// Do something when operation success
}),
FErrorHandler::CreateLambda( [&](int32 ErrorCode, const FString &ErrorMessage)
{
UE_LOG(LogTemp, Warning, TEXT("### Session creation ERROR: %s"), *ErrorMessage);
}));
}
I configured the session in dashboard as below:
I integrated SteamSDK, and I can confirm it works well, as Steam Overlay shows up my Steam account.
I’m not sure what Authorization is missing.
Thank you in advance.