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
setError(`Lab-Dash API rate limit exceeded: ${err.response?.data?.message}`);
286
+
}else{
287
+
// This is a rate limit from Pi-hole itself
288
+
setAuthFailed(true);
289
+
setError('Too many requests to Pi-hole API. The default session expiration is 30 minutes. You can manually clear unused sessions or increase the max_sessions setting in Pi-hole.');
290
+
}
291
+
}elseif(err.pihole?.code==='TOO_MANY_REQUESTS'){
285
292
setAuthFailed(true);
286
293
setError('Too many requests to Pi-hole API. The default session expiration is 30 minutes. You can manually clear unused sessions or increase the max_sessions setting in Pi-hole.');
setError(`Lab-Dash API rate limit exceeded: ${err.response?.data?.message}`);
669
+
}else{
670
+
// This is a rate limit from Pi-hole itself
671
+
setAuthFailed(true);
672
+
setError('Too many requests to Pi-hole API. The default session expiration is 30 minutes. You can manually clear unused sessions or increase the max_sessions setting in Pi-hole.');
673
+
}
674
+
}elseif(err.pihole?.code==='TOO_MANY_REQUESTS'){
658
675
setAuthFailed(true);
659
676
setError('Too many requests to Pi-hole API. The default session expiration is 30 minutes. You can manually clear unused sessions or increase the max_sessions setting in Pi-hole.');
setError(`Lab-Dash API rate limit exceeded: ${err.response?.data?.message}`);
738
+
}else{
739
+
// This is a rate limit from Pi-hole itself
740
+
setAuthFailed(true);
741
+
setError('Too many requests to Pi-hole API. The default session expiration is 30 minutes. You can manually clear unused sessions or increase the max_sessions setting in Pi-hole.');
742
+
}
743
+
}elseif(err.pihole?.code==='TOO_MANY_REQUESTS'){
717
744
setAuthFailed(true);
718
745
setError('Too many requests to Pi-hole API. The default session expiration is 30 minutes. You can manually clear unused sessions or increase the max_sessions setting in Pi-hole.');
0 commit comments