Skip to content

@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 ​

ts
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 ​

ts
readonly retryable: true = true;

Always true: the negotiation is per connection, so a later one may still produce a key.


stationSn ​

ts
readonly stationSn: string;

The station whose session key did not arrive.

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.