Skip to content

Commit

Permalink
Merge pull request #675 from oceanprotocol/issue-672-downgrade-rpc-er…
Browse files Browse the repository at this point in the history
…rors

Downgrade indexer errors
  • Loading branch information
jamiehewitt15 authored Sep 4, 2024
2 parents a77d41d + bcf688e commit ebdec2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Indexer/crawlerThread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export async function processNetworkData(
)
} catch (error) {
INDEXER_LOGGER.log(
LOG_LEVELS_STR.LEVEL_ERROR,
`Get events for network: ${rpcDetails.network} failure: ${error.message} `,
LOG_LEVELS_STR.LEVEL_WARN,
`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)
Expand Down
4 changes: 2 additions & 2 deletions src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ebdec2a

Please sign in to comment.