Error Handling
Error Categories
Category
Examples
Response
Logging
const { log } = require('@vario-software/vario-app-framework-backend/utils/logger');
// Log levels: DEBUG, INFO, WARN, ERROR
await log('Starting article sync for channel X', 'services/sync', 'INFO');
await log(`Article ${articleId} synced successfully`, 'services/sync', 'INFO');
await log(`Rate limit warning: 80% consumed`, 'services/sync', 'WARN');
await log(`Failed to sync article ${articleId}: ${error.message}`, 'services/sync', 'ERROR');What to Log
Masking Sensitive Data
HttpError
Queue Error Tracking
Retry Strategies
Automatic Retry (Transient Errors)
Manual Retry (Permanent or Unknown Errors)
No Retry (Permanent Errors)
Error Notifications
Non-Blocking Error Handling
Webhook Error Handling
Last updated
Was this helpful?