Class MemcoInvalidRequestError
Hierarchy (View Summary)
- MemcoAPIError
- MemcoInvalidRequestError
Constructors
constructor
-
new MemcoInvalidRequestError(
code: Status,
detail: string,
debugErrorString?: string,
): MemcoInvalidRequestErrorParameters
- code: Status
- detail: string
OptionaldebugErrorString: string
Returns MemcoInvalidRequestError
Properties
Readonlycode
code: Status
The gRPC status code, as @grpc/grpc-js's numeric status enum.
ReadonlycodeName
codeName: string
The status code's name, such as UNAUTHENTICATED.
Readonlydetail
detail: string
The service's own description of the failure, without the code prefix.
ReadonlydebugErrorString
debugErrorString: string | undefined
gRPC's internal diagnostic string, when the call carried one.
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.
detailsays what was wrong with it, and fixing the call is the only way past this.Prefer
error.name === 'MemcoInvalidRequestError'toinstanceof, for the reason this module's header gives.