← Back to blog

Handle Cryvis API Errors in Make.com

Configure Make.com Error Handlers for Cryvis HTTP calls—retries, 401/402/422 codes, and soft validation warnings in meta.

Cryvis failures are predictable JSON plus HTTP status codes. Soft validation warnings, however, often arrive as HTTP 200—those need a Router, not an Error Handler.

This post covers Make Error Handlers on the Cryvis HTTP module, retry strategy, and validation warnings. Hub: Make.com + Cryvis. Auth: Bearer authentication.

Error response shape

{
  "success": false,
  "error": {
    "code": "CREDIT_ERROR",
    "message": "Insufficient credits."
  },
  "request_id": "req_..."
}

Map error.code, error.message, and request_id inside the error-handler branch (Slack/Sheets log).

Status code cheat sheet

HTTPCodeTypical causeMake handler tip
401AUTHENTICATION_ERRORBad/missing BearerBreak; fix key; no auto-retry storm
403AUTHORIZATION_ERRORPermissionBreak + alert
402CREDIT_ERROREmpty balanceBreak; notify billing
400MISSING_COUNTRY / invalid inputDriver license without country, bad multipartBreak; fix scenario
404UNSUPPORTED_DOCUMENT / UNSUPPORTED_COUNTRYWrong type/countryBreak; fix Router
422VALIDATION_ERROR / EXTRACTION_ERROR / CONVERSION_ERRORSchema hard fail, unreadable fileBreak or Resume with flag
502AI_PROVIDER_ERRORUpstream blipBreak with delayed retry
500INTERNAL_ERRORServerBreak with retry

Credits doc: Credits.

Attach an Error Handler

On the HTTP module → Add error handler:

HTTP Cryvis
  ├─ happy path → Sheets
  └─ error handler
        → Slack Notify (code, message, request_id)
        → Break (store incomplete execution)
HandlerWhen
BreakDefault for Cryvis—retry after fixing credits/key/file
IgnoreRare; only if skipping one bad attachment in a batch loop and you accept data loss
ResumeProvide fallback empty collection and continue—use carefully
RollbackOnly if other modules are transactional

Prefer Break for 402/401/502 so incomplete executions remain visible in Make.

Retries

  • 502 / transient network: Break with automatic retry (e.g. 15–60 minutes), limited attempts.
  • 401 / 402 / 400 / 404: Do not tight-loop retry—fix config or credits first.
  • 422 VALIDATION_ERROR (custom hard): Fix schema or document; retrying the same PDF rarely helps.

Soft validation is not an error

Custom extractors (and some flows) return:

{
  "success": true,
  "data": { },
  "meta": {
    "validation": {
      "is_valid": false,
      "warnings": [ ... ],
      "confidence": 0.7
    }
  }
}

HTTP status 200 → Error Handler never runs. Add a Router or Filter:

HTTP (success)
  → Router
       warnings length = 0 → write ERP
       warnings length > 0 → Slack #review → optional write / hold

Schema soft vs hard: Custom extractor schemas. Field design: Extract specific fields.

Per-file failures in batches

Multi-file receipt calls can succeed overall while you still want to inspect each results[].meta. Iterate results; treat empty data or validation objects per file. Envelope: Parse API JSON responses.

Logging template (Slack)

Include:

  • Scenario name + execution ID (Make)
  • Cryvis error.code / error.message or validation warnings
  • Cryvis request_id
  • Source file name (Drive/Gmail)

Support can correlate Console usage with that request_id.

Checklist

  • Error Handler on every Cryvis HTTP module
  • Slack/Sheets log includes request_id
  • 402 vs 401 differentiated in the message
  • Router for meta.validation.warnings
  • No aggressive retry on auth/credit errors

Multipart mistakes often surface as 400/422—verify field names in Send multipart form data. Full REST setup: Connect REST API.