diff --git a/libs/src/sdk/middleware/discoveryNodeSelectorMiddleware.ts b/libs/src/sdk/middleware/discoveryNodeSelectorMiddleware.ts index d87d9d19ca2..948a5c63207 100644 --- a/libs/src/sdk/middleware/discoveryNodeSelectorMiddleware.ts +++ b/libs/src/sdk/middleware/discoveryNodeSelectorMiddleware.ts @@ -119,7 +119,10 @@ const isDiscoveryNodeHealthy = async ({ }) return false } - if (!data.version || semver.lt(data.version, currentVersion)) { + if ( + currentVersion && + (!data.version || semver.lt(data.version, currentVersion)) + ) { console.warn('Audius SDK discovery provider version unhealthy', { endpoint })