Skip to Content
DevelopersError CodesCodesContractGet realm by slug failed (contract)

Get realm by slug failed (contract)

Code

GET_REALM_BY_SLUG_FAILED

What it means

The server-side contract adapter attempted to read a realm by slug, but the contract query or the “not found” detection failed.

When it happens

  • A contract-backed realm lookup by slug fails (not found or query failure).

Typical scenarios:

  • Contract returns empty/undefined realm (slug does not exist)
  • Node/VM query failure
  • Seed normalization fails after fetching the realm

How to handle

  • Treat as 404 only when the absence is confirmed; otherwise treat as a 500-class dependency failure.
  • Include slug and type in meta so the failing path is identifiable.

Notes

This code is intentionally flat (no CONTRACT/... prefix) for now, but it is grouped under CONTRACT in AppErrorCodes for discoverability.

Last updated on
Docsv1.0.10