Hyperlinkv0.9.0-beta.0

Node

Node.ServiceNotServedclasssrc/internal/nodeCore.ts:1208

The peer answered the node-status RPC, but the target resource key is not in status.services. Surfaced by Hyperlink.verifyConnection(node, { deep: true, resource }).

errorsHyperlink.verifyConnection
export class ServiceNotServed extends Data.TaggedError("ServiceNotServed")<{
  readonly node: string;
  readonly url: string;
  readonly serviceKey: string;
  readonly served: ReadonlyArray<string>;
}> {
  override get message() {
    const list = this.served.length === 0 ? "none" : this.served.join(", ");
    return (
      `Node "${this.node}" at ${this.url} does not serve "${this.serviceKey}" ` +
      `(serves: ${list}).`
    );
  }
}
Referenced by 3 symbols