From fbb5bd9010a662e9d7d5e5e5a2612c91cef7b173 Mon Sep 17 00:00:00 2001 From: paulo-ocean Date: Thu, 1 Aug 2024 09:36:22 +0100 Subject: [PATCH] fix root endpoint, without RPCS --- src/components/httpRoutes/rootEndpoint.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/httpRoutes/rootEndpoint.ts b/src/components/httpRoutes/rootEndpoint.ts index 6b1fe904a..6aa57c83d 100644 --- a/src/components/httpRoutes/rootEndpoint.ts +++ b/src/components/httpRoutes/rootEndpoint.ts @@ -7,11 +7,10 @@ export const rootEndpointRoutes = express.Router() rootEndpointRoutes.get('/', async (req, res) => { const config = await getConfiguration() if (!config.supportedNetworks) { - HTTP_LOGGER.error(`Supported networks not defined`) - res.status(400).send(`Supported networks not defined`) + HTTP_LOGGER.warn(`Supported networks not defined`) } res.json({ - chainIds: Object.keys(config.supportedNetworks), + chainIds: config.supportedNetworks ? Object.keys(config.supportedNetworks) : [], providerAddress: config.keys.ethAddress, serviceEndpoints: getAllServiceEndpoints(), software: 'Ocean-Node',