fix(vkauth): ловим 486 как auth-error для рецикла аллокации

This commit is contained in:
samosvalishe committed 2026-08-17 18:45:31 +03:00
1 parent d208a0d3df
commit 5fdd8c3112
2 files changed
+3 -1

No files matched your search

@@ -78,5 +78,6 @@ func IsAuthError(err error) bool {
strings.Contains(s, "Unauthorized") || strings.Contains(s, "Unauthorized") ||
strings.Contains(s, "authentication") || strings.Contains(s, "authentication") ||
strings.Contains(s, "invalid credential") || strings.Contains(s, "invalid credential") ||
strings.Contains(s, "stale nonce") strings.Contains(s, "stale nonce") ||
strings.Contains(s, "486")
} }
@@ -36,6 +36,7 @@ func TestIsAuthError(t *testing.T) {
"stale nonce": true, "stale nonce": true,
"invalid credential": true, "invalid credential": true,
"authentication required": true, "authentication required": true,
"486: Allocation Quota Reached": true,
"connection refused": false, "connection refused": false,
"": false, "": false,
} }