From eedf0b3c8ec488455a1b643bb5c3c7a73fab8664 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Wed, 4 Sep 2024 14:04:18 +0300 Subject: [PATCH 1/3] downgrading rpc error to a warning --- src/components/Indexer/crawlerThread.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Indexer/crawlerThread.ts b/src/components/Indexer/crawlerThread.ts index 86cd7198f..9816b34f5 100644 --- a/src/components/Indexer/crawlerThread.ts +++ b/src/components/Indexer/crawlerThread.ts @@ -149,7 +149,7 @@ export async function processNetworkData( ) } catch (error) { INDEXER_LOGGER.log( - LOG_LEVELS_STR.LEVEL_ERROR, + LOG_LEVELS_STR.LEVEL_WARN, `Get events for network: ${rpcDetails.network} failure: ${error.message} `, true ) From 3f5fd810af1bb0a556fedba54aef8b136941eafa Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Wed, 4 Sep 2024 14:08:36 +0300 Subject: [PATCH 2/3] Change indexer message to info level --- src/utils/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/config.ts b/src/utils/config.ts index 3fd9591ca..98f916611 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -101,8 +101,8 @@ function getIndexingNetworks(supportedNetworks: RPCS): RPCS | null { CONFIG_LOGGER.logMessageWithEmoji( 'INDEXER_NETWORKS is not defined, running Indexer with all supported networks defined in RPCS env variable ...', true, - GENERIC_EMOJIS.EMOJI_CROSS_MARK, - LOG_LEVELS_STR.LEVEL_ERROR + GENERIC_EMOJIS.EMOJI_CHECK_MARK, + LOG_LEVELS_STR.LEVEL_INFO ) return supportedNetworks } From bcf688e2adc67d0e22e34cea48c326eacabcb716 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Wed, 4 Sep 2024 14:19:48 +0300 Subject: [PATCH 3/3] Adding a help message to the get events log --- src/components/Indexer/crawlerThread.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Indexer/crawlerThread.ts b/src/components/Indexer/crawlerThread.ts index 9816b34f5..b8a9b7578 100644 --- a/src/components/Indexer/crawlerThread.ts +++ b/src/components/Indexer/crawlerThread.ts @@ -150,7 +150,7 @@ export async function processNetworkData( } catch (error) { INDEXER_LOGGER.log( LOG_LEVELS_STR.LEVEL_WARN, - `Get events for network: ${rpcDetails.network} failure: ${error.message} `, + `Get events for network: ${rpcDetails.network} failure: ${error.message} \n\nConsider that there may be an issue with your RPC provider. We recommend using private RPCs from reliable providers such as Infura or Alchemy.`, true ) chunkSize = Math.floor(chunkSize / 2) < 1 ? 1 : Math.floor(chunkSize / 2)