Skip to Content

Class MemcoInvalidRequestError

The request was refused as malformed.

Raised by the service, and raised locally by the SDK's own structural checks — deliberately indistinguishable, because the remedy is the same.

A local refusal usually means nothing was sent. The exception is MemoryOperations.importMemories, which validates a batch one group at a time and sends each before taking the next, so a bad entry late in a long batch is refused after the groups before it have already been written.

Never worth retrying: the same request will be refused again. detail says what was wrong with it, and fixing the call is the only way past this.

Prefer error.name === 'MemcoInvalidRequestError' to instanceof, for the reason this module's header gives.

Hierarchy (View Summary)

Index
code: Status

The gRPC status code, as @grpc/grpc-js's numeric status enum.

codeName: string

The status code's name, such as UNAUTHENTICATED.

detail: string

The service's own description of the failure, without the code prefix.

debugErrorString: string | undefined

gRPC's internal diagnostic string, when the call carried one.