{"record":{"id":"1ca385500b86ab81","repo":"deepseek-ai/deepseek-harness","slug":"service-unavailable","errorCode":"service-unavailable","errorMessage":"active Service ${JSON.stringify(descriptor.service)} is unavailable","messagePattern":"active Service (.+?) is unavailable","errorType":"error_code","errorClass":"TypertGatewayError","httpStatus":null,"severity":"error","filePath":"packages/api/gateway/src/index.ts","lineNumber":152,"sourceCode":"      }\n    }\n    return claims\n  }\n\n  /**\n   * Invoke one live Remote method through strict generated reflection or SRC markers.\n   * @param request - decoded endpoint and exact named wire arguments.\n   * @returns the validated business result.\n   * @throws {@link TypertGatewayError} for dispatch, provider, or boundary failures; lookup-policy and business errors retain identity.\n   */\n  async invoke(request: InvokeRemoteRequest): Promise<unknown> {\n    const endpoint = endpointOf(request.namespace, request.method)\n    const descriptor = this.resolveDescriptor(request.namespace, request.method, endpoint)\n    assertExactArguments(request.args, descriptor, endpoint)\n    const receiverContext = await this.resolveReceiverContext(descriptor, request.args, endpoint)\n    const receiver = receiverContext.get(descriptor.service) as unknown\n    if (!isObject(receiver)) {\n      throw new TypertGatewayError(\n        'service-unavailable',\n        endpoint,\n        `active Service ${JSON.stringify(descriptor.service)} is unavailable`,\n      )\n    }\n    validateBinding(receiver, descriptor.service, descriptor.namespace, endpoint)\n    const args = await Promise.all(descriptor.parameters.map(parameter =>\n      this.resolveParameter(parameter, request.args, endpoint)))\n    if (descriptor.cancellation !== undefined) args.push(request.signal ?? NEVER_ABORTED_SIGNAL)\n    const implementation = descriptor.implementation ?? descriptor.method\n    const method = Reflect.get(receiver, implementation) as unknown\n    if (typeof method !== 'function') {\n      throw new TypertGatewayError(\n        'method-unavailable',\n        endpoint,\n        `active Service ${JSON.stringify(descriptor.service)} has no callable method ${JSON.stringify(implementation)}`,\n      )\n    }","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/api/gateway/src/index.ts#L134-L170","documentation":"Error \"active Service ${JSON.stringify(descriptor.service)} is unavailable\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/api/gateway/src/index.ts:152 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start and register the Service before invoking it; check plugin load errors."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}