Closed ManuelMaM closed 2 years ago
my config file:
# Database credentials
readerDatabase:
user: "beaconexp"
name: "explorer"
host: "localhost"
port: "5432"
password: "something"
writerDatabase:
user: "beaconexp"
name: "explorer"
host: "localhost"
port: "5432"
password: "something"
# Chain network configuration (example will work for the prysm testnet)
chain:
configPath: ./config/mainnet.chain.yml
genesisTimestamp: 1639659600
# Note: It is possible to run either the frontend or the indexer or both at the same time
# Frontend config
frontend:
enabled: true # Enable or disable to web frontend
imprint: "templates/imprint.example.html}**" # Path to the imprint page content
siteName: "Ethereum 2.0 Beacon Chain (Phase 0) Block Chain Explorer" # Name of the site, displayed in the title tag
siteSubtitle: "Showing the <a href='https://prylabs.net'>💎 Prysm Eth2 Testnet</a>" # Subtitle shown on the main page
csrfAuthKey: '0123456789abcdef000000000000000000000000000000000000000000000000'
jwtSigningSecret: "0123456789abcdef000000000000000000000000000000000000000000000000"
jwtIssuer: "beaconcha.in"
jwtValidityInMinutes: 30
server:
host: "0.0.0.0" # Address to listen on
port: "3333" # Port to listen on
readerDatabase:
user: "beaconexp"
name: "explorer"
host: "localhost"
port: "5432"
password: "something"
writerDatabase:
user: "beaconexp"
name: "explorer"
host: "localhost"
port: "5432"
password: "something"
# sessionSecret: "<sessionSecret>"
# flashSecret: "" # Encryption secret for flash cookies
# Indexer config
indexer:
enabled: true # Enable or disable the indexing service
fullIndexOnStartup: false # Perform a one time full db index on startup
indexMissingEpochsOnStartup: true # Check for missing epochs and export them after startup
node:
host: "localhost" # Address of the backend node
port: "4000" # port of the backend node
type: "prysm" # can be either prysm or lighthouse
pageSize: 250 # the amount of entries to fetch per paged rpc call
eth1Endpoint: 'http://127.0.0.1:8545/'```
@ManuelMaM Looks like the problem is located here https://github.com/gobitfly/eth2-beaconchain-explorer/blob/3ecb5fabaf5b9ffc0fd7d1b197bfd67f14711b87/services/historic_prices.go#L75
For what ever reason:
The error message itself just saying that it's not possible to unmarshal a string that is not JSON Looks like an error is returned from coingecko for this date, for the program.
But to sum up: The explorer currently not supporting Prysm, so even if we will find & fix the cause of the problem, there will be another error. I suggest to use Lighthouse, which is supported.
Thx for the explanation, you should prob change the readme since it says to use prysm
I'm running a prysm node with the following args:
beacon-chain --http-web3provider=http://localhost:8545 --mainnet --enable-debug-rpc-endpoints --grpc-max-msg-size=65568081 --slots-per-archive-point=1
It is full synced. When i run the explorer binary with my config file, it gives me the following:After that errors keep comming: invalid character 'e' looking for beginning of value error exporting snyc-committee at period 290: not implemented unknown method ListBlocksAltair for service ethereum.eth.v1alpha1.BeaconChain
I've only found this old issue https://github.com/gobitfly/eth2-beaconchain-explorer/issues/1165 talking about the ListBlockAltair error.