Get system world by slug failed
Code
RPC/WORLD/GET_SYSTEM_WORLD_BY_SLUG_FAILED
What it means
The client attempted to read a system world by its slug, but the underlying chain query failed.
When it happens
- Fetching a system world by slug fails.
Typical scenarios:
- Network/transport error while querying the node
- Contract query failure (VM error)
- Unexpected response shape or parsing failure
How to handle
- Log
meta.viaand include the slug inmeta(e.g.meta.slug). - If the slug is user-provided, consider treating it as “not found” only when the contract response indicates absence.
- For transient failures, show retry UX.
Example
import { AppError, AppErrorCodes } from '@aina/shared-common';
throw AppError.ensure(e, {
code: AppErrorCodes.RPC.WORLD_GET_SYSTEM_WORLD_BY_SLUG_FAILED,
status: 500,
meta: { via: 'rpc.world.getSystemWorldBySlug', slug }
});Last updated on