You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LootLockerLogger.GetForLogLevel(LootLockerLogger.LogLevel.Warning)($"Token has expired and token refresh is not supported for {CurrentPlatform.GetFriendlyString()}");
LootLockerLogger.GetForLogLevel(LootLockerLogger.LogLevel.Error)($"Platform{CurrentPlatform.GetFriendlyString()} not supported");
321
-
onComplete?.Invoke(LootLockerResponseFactory.Error<LootLockerResponse>($"Platform{CurrentPlatform.GetFriendlyString()} not supported",401));
325
+
LootLockerLogger.GetForLogLevel(LootLockerLogger.LogLevel.Error)($"Token refresh for platform{CurrentPlatform.GetFriendlyString()} not supported");
326
+
onComplete?.Invoke(LootLockerResponseFactory.NetworkError<LootLockerResponse>($"Token refresh for platform{CurrentPlatform.GetFriendlyString()} not supported",401));
@@ -123,7 +132,49 @@ public class LootLockerErrorData
123
132
/// <returns>string used to debug errors</returns>
124
133
publicoverridestringToString()
125
134
{
126
-
return$"We encountered an unexpected server error. Please try again later.\n If the issue persists, please contact LootLocker support and reference the following error details:\n trace ID - {trace_id},\n request ID - {request_id},\n message - {message}.";
return$"An unexpected LootLocker error without error data occurred. Please try again later.\n If the issue persists, please contact LootLocker support.";
$"\nTry again later. If the issue persists, please contact LootLocker support and provide the following error details:\n trace ID - \"{trace_id}\",\n request ID - \"{request_id}\",\n message - \"{message}\".";
149
+
if(!string.IsNullOrEmpty(doc_url))
150
+
{
151
+
prettyError+=$"\nFor more information, see {doc_url} (error code was \"{code}\").";
152
+
}
153
+
}
154
+
// Print user errors
155
+
else
156
+
{
157
+
prettyError+=
158
+
$"\nThere was a problem with your request. The error message provides information on the problem and will help you fix it.";
159
+
if(!string.IsNullOrEmpty(doc_url))
160
+
{
161
+
prettyError+=$"\nFor more information, see {doc_url} (error code was \"{code}\").";
162
+
}
163
+
164
+
prettyError+=
165
+
$"\nIf you are unable to fix the issue, contact LootLocker support and provide the following error details:";
166
+
if(!string.IsNullOrEmpty(trace_id))
167
+
{
168
+
prettyError+=$"\n trace ID - \"{trace_id}\"";
169
+
}
170
+
if(!string.IsNullOrEmpty(request_id))
171
+
{
172
+
prettyError+=$"\n request ID - \"{request_id}\"";
173
+
}
174
+
175
+
prettyError+=$"\n message - \"{message}\".";
176
+
}
177
+
returnprettyError;
127
178
}
128
179
}
129
180
@@ -181,14 +232,11 @@ public static T Deserialize<T>(LootLockerResponse serverResponse,
181
232
{
182
233
if(serverResponse==null)
183
234
{
184
-
returnLootLockerResponseFactory.Error<T>("Unknown error, please check your internet connection.");
235
+
returnLootLockerResponseFactory.ClientError<T>("Unknown error, please check your internet connection.");
returnError<T>($"Your request to {method} was not sent. You are sending too many requests and are being rate limited for {secondsLeftOfRateLimit} seconds");
334
+
returnClientError<T>($"Your request to {method} was not sent. You are sending too many requests and are being rate limited for {secondsLeftOfRateLimit} seconds");
Copy file name to clipboardExpand all lines: Runtime/Game/LootLockerSDKManager.cs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -301,7 +301,7 @@ public static void StartGuestSession(string identifier, Action<LootLockerGuestSe
301
301
302
302
if(identifier.Length==0)
303
303
{
304
-
onComplete?.Invoke(LootLockerResponseFactory.Error<LootLockerGuestSessionResponse>("identifier cannot be empty"));
304
+
onComplete?.Invoke(LootLockerResponseFactory.ClientError<LootLockerGuestSessionResponse>("Identifier cannot be empty when calling StartGuestSession (if you want an identifier to be generated for you, please use StartGuestSession(Action<LootLockerGuestSessionResponse> onComplete)"));
305
305
return;
306
306
}
307
307
CurrentPlatform.Set(Platforms.Guest);
@@ -1187,14 +1187,14 @@ public static void StartWhiteLabelSession(Action<LootLockerSessionResponse> onCo
0 commit comments