fix: various fixes to sentry-reported errors and more
This commit is contained in:
@@ -24,6 +24,7 @@ export const APIErrorCodes = {
|
||||
ACCOUNT_DISABLED: 'ACCOUNT_DISABLED',
|
||||
BAD_GATEWAY: 'BAD_GATEWAY',
|
||||
BAD_REQUEST: 'BAD_REQUEST',
|
||||
BLUESKY_OAUTH_AUTHORIZATION_FAILED: 'BLUESKY_OAUTH_AUTHORIZATION_FAILED',
|
||||
BLUESKY_OAUTH_CALLBACK_FAILED: 'BLUESKY_OAUTH_CALLBACK_FAILED',
|
||||
BLUESKY_OAUTH_NOT_ENABLED: 'BLUESKY_OAUTH_NOT_ENABLED',
|
||||
BLUESKY_OAUTH_SESSION_EXPIRED: 'BLUESKY_OAUTH_SESSION_EXPIRED',
|
||||
@@ -65,6 +66,10 @@ export const APIErrorCodes = {
|
||||
CANNOT_SHRINK_RESERVED_SLOTS: 'CANNOT_SHRINK_RESERVED_SLOTS',
|
||||
CAPTCHA_REQUIRED: 'CAPTCHA_REQUIRED',
|
||||
CHANNEL_INDEXING: 'CHANNEL_INDEXING',
|
||||
CHUNKED_UPLOAD_CHUNK_INDEX_OUT_OF_RANGE: 'CHUNKED_UPLOAD_CHUNK_INDEX_OUT_OF_RANGE',
|
||||
CHUNKED_UPLOAD_INCOMPLETE: 'CHUNKED_UPLOAD_INCOMPLETE',
|
||||
CHUNKED_UPLOAD_NOT_FOUND: 'CHUNKED_UPLOAD_NOT_FOUND',
|
||||
CHUNKED_UPLOAD_NOT_OWNED: 'CHUNKED_UPLOAD_NOT_OWNED',
|
||||
COMMUNICATION_DISABLED: 'COMMUNICATION_DISABLED',
|
||||
CONNECTION_ALREADY_EXISTS: 'CONNECTION_ALREADY_EXISTS',
|
||||
CONNECTION_INITIATION_TOKEN_INVALID: 'CONNECTION_INITIATION_TOKEN_INVALID',
|
||||
|
||||
@@ -26,6 +26,7 @@ export const APIErrorCodesDescriptions: Record<keyof typeof APIErrorCodes, strin
|
||||
APPLICATION_NOT_OWNED: 'You do not own this application',
|
||||
BAD_GATEWAY: 'Bad gateway',
|
||||
BAD_REQUEST: 'Bad request',
|
||||
BLUESKY_OAUTH_AUTHORIZATION_FAILED: 'The Bluesky handle could not be resolved for authorisation',
|
||||
BLUESKY_OAUTH_CALLBACK_FAILED: 'The Bluesky OAuth callback could not be processed',
|
||||
BLUESKY_OAUTH_NOT_ENABLED: 'Bluesky OAuth connections are not enabled on this instance',
|
||||
BLUESKY_OAUTH_SESSION_EXPIRED: 'The Bluesky OAuth session has expired or been revoked',
|
||||
@@ -65,6 +66,10 @@ export const APIErrorCodesDescriptions: Record<keyof typeof APIErrorCodes, strin
|
||||
CANNOT_SHRINK_RESERVED_SLOTS: 'Cannot shrink reserved slots',
|
||||
CAPTCHA_REQUIRED: 'Captcha verification is required',
|
||||
CHANNEL_INDEXING: 'Channel is currently being indexed',
|
||||
CHUNKED_UPLOAD_CHUNK_INDEX_OUT_OF_RANGE: 'Chunk index is out of range for this upload',
|
||||
CHUNKED_UPLOAD_INCOMPLETE: 'Not all chunks have been uploaded',
|
||||
CHUNKED_UPLOAD_NOT_FOUND: 'Chunked upload session was not found',
|
||||
CHUNKED_UPLOAD_NOT_OWNED: 'You do not own this chunked upload session',
|
||||
COMMUNICATION_DISABLED: 'You are timed out in this guild',
|
||||
CONNECTION_ALREADY_EXISTS: 'A connection of this type with this identifier already exists',
|
||||
CONNECTION_INITIATION_TOKEN_INVALID: 'The connection initiation token is invalid or has expired',
|
||||
|
||||
@@ -40,7 +40,6 @@ export const LARGE_GUILD_THRESHOLD = 250;
|
||||
export const MEMBER_CHUNK_SIZE = 1000;
|
||||
|
||||
export const GatewayIdentifyFlags = {
|
||||
USE_CANARY_API: 1 << 0,
|
||||
DEBOUNCE_MESSAGE_REACTIONS: 1 << 1,
|
||||
} as const;
|
||||
|
||||
|
||||
@@ -97,6 +97,10 @@ export const MAX_MESSAGE_CACHE_SIZE = MAX_MESSAGES_PER_CHANNEL * 5;
|
||||
|
||||
export const NEW_MESSAGES_BAR_BUFFER = 32;
|
||||
|
||||
export const CHUNKED_UPLOAD_CHUNK_SIZE = 8 * 1024 * 1024;
|
||||
export const CHUNKED_UPLOAD_MAX_CHUNKS = 128;
|
||||
export const CHUNKED_UPLOAD_SESSION_TTL_SECONDS = 3600;
|
||||
|
||||
export const VALID_TEMP_BAN_DURATIONS: ReadonlySet<number> = new Set([
|
||||
1 * 3600,
|
||||
12 * 3600,
|
||||
|
||||
Reference in New Issue
Block a user