Giter Site home page Giter Site logo

Comments (7)

GimluCom avatar GimluCom commented on May 17, 2024

It does not look like the API changed

market_caps = data["market_caps"]
for [date, market_cap] <- market_caps do
date = Decimal.to_integer(Decimal.round(Decimal.from_float(date / 1000)))
%{
market_cap: Decimal.new(to_string(market_cap)),
date: CryptoCompare.date(date)
}
end

from blockscout.

zjb0807 avatar zjb0807 commented on May 17, 2024

@GimluCom You are right, I saw it wrong. Is there any way to log http error messages?

from blockscout.

GimluCom avatar GimluCom commented on May 17, 2024

Would you mind sharing your "exchange rates" ENVs?

from blockscout.

zjb0807 avatar zjb0807 commented on May 17, 2024

The complete configuration is here, you need to start postgre and rpc node separately.
The free API of COINGECKO is used, which may have limitations, but because there is no error message, it is difficult to debug. I hope the error message can be added. like this:
image

from blockscout.

zjb0807 avatar zjb0807 commented on May 17, 2024
docker run -it -d \
  --env POSTGRES_DB=blockscout \
  --env POSTGRES_USER=blockscout \
  --env POSTGRES_PASSWORD=blockscout \
  -p 5432:5432 \
  postgres:15 \
  postgres -c 'max_connections=200' -c 'client_connection_check_interval=60000'


docker run --env-file=./envs/common-blockscout.env \
  --env FIRST_BLOCK=30000000 \
  --env ETHEREUM_JSONRPC_HTTP_URL=https://rpc.ankr.com/eth \
  --env DATABASE_URL=postgresql://blockscout:[email protected]:5432/blockscout \
  --env DISABLE_EXCHANGE_RATES=false \
  --env EXCHANGE_RATES_COINGECKO_PLATFORM_ID=ethereum \
  --env EXCHANGE_RATES_COINGECKO_COIN_ID=ethereum \
  --env TOKEN_EXCHANGE_RATE_INTERVAL=2m \
  --env EXCHANGE_RATES_MARKET_CAP_SOURCE=coin_gecko \
  --env INDEXER_EMPTY_BLOCKS_SANITIZER_BATCH_SIZE=1 \
  --env INDEXER_CATCHUP_BLOCKS_BATCH_SIZE=1 \
  --env INDEXER_CATCHUP_BLOCKS_CONCURRENCY=1 \
  --env INDEXER_CATCHUP_BLOCK_INTERVAL=30s \
  --env INDEXER_BLOCK_REWARD_BATCH_SIZE=1 \
  --env INDEXER_BLOCK_REWARD_CONCURRENCY=1 \
  --env INDEXER_RECEIPTS_BATCH_SIZE=1 \
  --env INDEXER_RECEIPTS_CONCURRENCY=1 \
  --env INDEXER_COIN_BALANCES_BATCH_SIZE=1 \
  --env INDEXER_COIN_BALANCES_CONCURRENCY=1 \
  --env INDEXER_TOKEN_CONCURRENCY=1 \
  --env INDEXER_TOKEN_BALANCES_BATCH_SIZE=1 \
  --env INDEXER_TOKEN_BALANCES_CONCURRENCY=1 \
  --env INDEXER_CATCHUP_MISSING_RANGES_BATCH_SIZE=1 \
  --env MIN_MISSING_BLOCK_NUMBER_BATCH_SIZE=1 \
  --env INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER=true \
  --env INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER=true \
  blockscout/blockscout:6.2.2.commit.f8092ac3 \
  sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"

this can reproduce the error:
image

from blockscout.

GimluCom avatar GimluCom commented on May 17, 2024

this can reproduce the error

The Coingecko API is rate limiting your IP address because you have not provided an API key. The Coingecko API has a monthly limit, meaning you will be rate limited until the next month.

Please clarify if this solves your issue or if your issue is about including the error_code/error_message in the warning from Blockscout.

from blockscout.

zjb0807 avatar zjb0807 commented on May 17, 2024

I hope to print the error code and error message returned by the API in the log, like this #9586 (comment)
so the developers can resolve it easily.

from blockscout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.