diff --git a/packages/core/src/common/k8s-api/endpoints/pod.api.ts b/packages/core/src/common/k8s-api/endpoints/pod.api.ts index c63f970edf..3b336de577 100644 --- a/packages/core/src/common/k8s-api/endpoints/pod.api.ts +++ b/packages/core/src/common/k8s-api/endpoints/pod.api.ts @@ -57,6 +57,12 @@ export class PodApi extends KubeApi { async getLogs(params: ResourceDescriptor, query?: PodLogsQuery): Promise { const path = `${this.getUrl(params)}/log`; - return this.request.get(path, { query }); + const logs = await this.request.get(path, { query }); + + if (typeof logs !== "string") { + return ""; + } + + return logs; } }