From b08da0d95208ab6a8f0eb56eeb18736e995cc36a Mon Sep 17 00:00:00 2001 From: Rohin Bhargava Date: Thu, 10 Oct 2024 13:43:51 -0400 Subject: [PATCH] add debug statement for vapi deploy --- servers/fdr/src/services/docs-cache/DocsDefinitionCache.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/servers/fdr/src/services/docs-cache/DocsDefinitionCache.ts b/servers/fdr/src/services/docs-cache/DocsDefinitionCache.ts index 6c82cd24d8..fe105d88f7 100644 --- a/servers/fdr/src/services/docs-cache/DocsDefinitionCache.ts +++ b/servers/fdr/src/services/docs-cache/DocsDefinitionCache.ts @@ -248,7 +248,12 @@ export class DocsDefinitionCacheImpl implements DocsDefinitionCache { private async cacheResponse({ url, value }: { url: URL; value: CachedDocsResponse }): Promise { if (this.redisDocsCache) { - await this.redisDocsCache.set({ url, value }); + try { + await this.redisDocsCache.set({ url, value }); + } catch (e) { + console.error("failed cache replaceDocsForInstanceId", new Error().stack, JSON.stringify(value).length); + throw e; + } } this.localDocsCache.set({ url, value }); }