Skip to Content

Class MemcoSunsetError

The call was refused because a version it depends on has been withdrawn.

Nothing to retry and nothing to reconfigure. Read kind for the remedy: SunsetKind.CLIENT_VERSION means upgrade this package, while SunsetKind.API_VERSION means the API version this build speaks is no longer served, which reinstalling the same version will not fix.

It should never be the first warning. While a version still works, the service reports the coming sunset on every listDomains, and the SDK surfaces that through process.emitWarning under DEPRECATION_WARNING_NAME — once per message, not once per call.

A subclass of MemcoPreconditionFailedError, so ordering matters when catching both: test for this one first.

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.

Whether the SDK build or the API version is the one that expired.