Skip to content

Error Codes

All services use the Result pattern (neverthrow). Errors are typed with a code field and descriptive message. Here is the complete error code reference.

Pipeline Errors

CodeRetryableDescription
ALREADY_RUNNINGNoAnother pipeline run is in progress
DAILY_LIMIT_REACHEDNoMAX_POSTS_PER_DAY exceeded
NO_POSTS_AVAILABLENoNo posts match filters across all subreddits
FETCH_FAILEDYesReddit scraping failed after retries
LLM_REWRITE_FAILEDYesLLM conversation generation failed
MESSAGE_RENDER_FAILEDYesiMessage video rendering failed
TTS_FAILEDYesSpeech synthesis failed
VIDEO_FAILEDYesVideo composition failed
PUBLISH_FAILEDYesTikTok upload failed

Reddit Errors

CodeDescription
BROWSER_NOT_READYCamoufox not initialized
NAVIGATION_FAILEDFailed to load subreddit page
SCRAPING_FAILEDDOM parsing error
NO_POSTS_FOUNDNo posts match filters
PERSISTENCE_FAILEDDatabase write error

LLM Errors

CodeDescription
REQUEST_FAILEDHTTP request to LLM endpoint failed
PARSE_FAILEDLLM response is not valid JSON
VALIDATION_FAILEDJSON doesn't match Conversation schema
TIMEOUTRequest exceeded LLM_TIMEOUT_MS

TTS Errors

CodeDescription
MODEL_LOAD_FAILEDKokoro ONNX model initialization error
SYNTHESIS_FAILEDAudio generation error
CHUNKING_FAILEDText splitting error
CONCATENATION_FAILEDAudio chunk joining error
ALIGNMENT_FAILEDWhisper timestamp extraction error

Video Errors

CodeDescription
NO_BACKGROUNDSNo background videos in library
BACKGROUND_PROBE_FAILEDFFprobe failed
SUBTITLE_GENERATION_FAILEDASS file generation error
FFMPEG_FAILEDVideo composition error
OUTPUT_MISSINGFFmpeg succeeded but output file not found
INVALID_INPUTMissing required word timestamps

Message Renderer Errors

CodeDescription
FRAME_GENERATION_FAILEDPNG frame rendering error
FFMPEG_FAILEDVideo composition error
TEMPLATE_LOAD_FAILEDiMessage template asset missing
NARRATION_FAILEDTTS synthesis or alignment failure

Publisher Errors

CodeDescription
UPLOAD_FAILEDGeneral upload error
LOGIN_REQUIREDSession expired
CAPTCHA_DETECTEDCAPTCHA challenge (non-retryable)
BROWSER_NOT_READYCamoufox not initialized
TIMEOUTUpload exceeded timeout
SESSION_EXPIREDCookie session invalid
FILE_NOT_FOUNDVideo file missing
NAVIGATION_FAILEDTikTok page load error

Browser Errors

CodeDescription
LAUNCH_FAILEDCamoufox binary not found
NOT_READYBrowser not initialized
PAGE_CREATION_FAILEDCould not create page
BROWSER_CRASHEDBrowser process exited

Built with VitePress