PaulGajda Posted October 16, 2017 Share Posted October 16, 2017 Hello there! When I'm trying to upload scores, sometimes I'm getting 50002 error which according to documentation is Internal server error. However as i said it happens only sometimes and i don't really know why. Would appreciate some help with it.This is my implementation of uploading player score: void UViveportComponent::UploadPlayerScore(UObject* WorldContextObject, const FString LeaderboardName, int Score, struct FLatentActionInfo LatentInfo){ if (UViveportApi::Init(&myInitCallback, APP_ID)) { if (UViveportUserStats::IsReady(&myIsReadyStatus)) { if (UWorld* World = GEngine->GetWorldFromContextObject(WorldContextObject)) { FLatentActionManager& LatentActionManager = World->GetLatentActionManager(); if (LatentActionManager.FindExistingAction<ViveportComponentLatentUpload>(LatentInfo.CallbackTarget, LatentInfo.UUID) == NULL) { UViveportUserStats::UploadLeaderboardScore(&myUploadLeaderboardScoreStatus, LeaderboardName, Score); LatentActionManager.AddNewAction(LatentInfo.CallbackTarget, LatentInfo.UUID, new ViveportComponentLatentUpload(LatentInfo)); } } } }} Link to comment Share on other sites More sharing options...
HackPerception Posted October 16, 2017 Share Posted October 16, 2017 , What's your engine version? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.