Skip to content

Commit

Permalink
FFM-10286 Retry on auth 500 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
erdirowlands committed Dec 28, 2023
1 parent a7a099d commit d23a055
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion force-app/main/classes/FFAuthServiceCached.cls
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public class FFAuthServiceCached implements FFAuthService {
} catch (FFBase.ApiException e) {
System.debug('Auth Error');
System.debug(e);
// TODO retry on more than just 403
if(e.getStatusCode() == 403 || e.getStatusCode() == 500) {
if(retry < this.config.authRetries) {
System.debug('Retrying authentication, retry no. ' + retry);
Expand Down

0 comments on commit d23a055

Please sign in to comment.