Class MemcoAuthenticationError
Hierarchy (View Summary)
- MemcoAPIError
- MemcoAuthenticationError
Constructors
constructor
-
new MemcoAuthenticationError(
code: Status,
detail: string,
debugErrorString?: string,
): MemcoAuthenticationErrorParameters
- code: Status
- detail: string
OptionaldebugErrorString: string
Returns MemcoAuthenticationError
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 credential was missing, malformed or rejected.
Never worth retrying: the same credential will be refused again. Check that
MEMCO_API_TOKEN, or thetokengiven to MemcoOptions, is present and still current. Memco.connect lists domains, and that call carries the credential, so a stale one fails there rather than on the first search.Prefer
error.name === 'MemcoAuthenticationError'toinstanceof, for the reason this module's header gives.