Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 663 Bytes

File metadata and controls

35 lines (23 loc) · 663 Bytes
outline deep

DF0026: No Dump Match

Package: devframe

Migrated from DTK0006.

Message

No dump match for "{name}" with args: {args}

Cause

A static-mode client called an RPC function with arguments that don't match any pre-computed record, and no fallback was set on the dump.

Fix

Either widen the function's dump.inputs to cover the requested arguments, or provide dump.fallback so unmatched calls resolve to a default value instead of throwing.

defineRpcFunction({
  name: 'my-plugin:get',
  dump: {
    inputs: [['known-id']],
    fallback: null,
  },
})

Source

packages/devframe/src/rpc/dumps.ts