@mega-yfue/eufy-sdk / StationKeyUnavailableError
Class: StationKeyUnavailableError
Work on a station was refused: the station did not provide the session key that work requires.
A station reached over its HomeBase encrypts what it is sent under a key negotiated once per connection, and a media start for an attached camera has no unencrypted form at all — so without that key there is nothing to send, however reachable the station is. Naming this apart from a source that failed is what separates an account whose cipher material could not be resolved from a camera that is off, a station that is busy, or a stream that produced nothing: they share no next step.
The level2-unavailable trace states WHY the key is not coming. This states only that it is not, because that is what the refusal itself knows.
stationSn is the station that owed the key, which is the parent for an attached camera and therefore not the serial the refused call was made about: several cameras refused at once are one station's outcome, and nothing else in the refusal says so.
Extends
Error
Constructors
Constructor
new StationKeyUnavailableError(stationSn, options?): StationKeyUnavailableError;Parameters
stationSn
string
The station whose session key did not arrive.
options?
cause?
unknown
Returns
StationKeyUnavailableError
Overrides
Error.constructor
Properties
retryable
readonly retryable: true = true;Always true: the negotiation is per connection, so a later one may still produce a key.
stationSn
readonly stationSn: string;The station whose session key did not arrive.