Hyperlinkv0.8.0-beta.28

Node

Node.ServiceNotServedclasssrc/internal/nodeCore.ts:1119

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

errorsNodeStatusHyperlink.verifyConnection
export class ServiceNotServed extends Data.TaggedError("ServiceNotServed")<{
  readonly node: string;
  readonly url: string;
  readonly resource: 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.resource}" ` +
      `(serves: ${list}).`
    );
  }
}
Referenced by 1 symbols