Closed icculp closed 1 year ago
@icculp
Chain Metrics dashboard not showing chain status or height for starknet main or test. I'm getting below error from blockchain_exporter container when I add starknet urls to my chains.json
https://starknet-mainnet.gateway.pokt.network/v1/lb/666288f4a69a4510c0b21f1d https://starknet-testnet.gateway.pokt.network/v1/lb/666288f4a69a4510c0b21f1d
Traceback (most recent call last): 2023-03-27T17:28:48.509339511Z File "/usr/app/bc_node_exporter/connectors/EthConnector.py", line 58, in report_metrics 2023-03-27T17:28:48.509355303Z sync_data = await self.get_sync_data() 2023-03-27T17:28:48.509363720Z File "/usr/app/bc_node_exporter/connectors/EthConnector.py", line 24, in get_sync_data 2023-03-27T17:28:48.509371345Z sync_data = await self.w3.eth.syncing 2023-03-27T17:28:48.509378511Z File "/root/.local/lib/python3.10/site-packages/web3/eth.py", line 398, in syncing 2023-03-27T17:28:48.509385595Z return await self._is_syncing() # type: ignore 2023-03-27T17:28:48.509392553Z File "/root/.local/lib/python3.10/site-packages/web3/module.py", line 72, in caller 2023-03-27T17:28:48.509399636Z result = await w3.manager.coro_request(method_str, 2023-03-27T17:28:48.509406386Z File "/root/.local/lib/python3.10/site-packages/web3/manager.py", line 214, in coro_request 2023-03-27T17:28:48.509413345Z return self.formatted_response(response, 2023-03-27T17:28:48.509420136Z File "/root/.local/lib/python3.10/site-packages/web3/manager.py", line 171, in formatted_response 2023-03-27T17:28:48.509427136Z raise ValueError(response["error"]) 2023-03-27T17:28:48.509434220Z ValueError: {'code': -32601, 'message': 'Method not found'} 2023-03-27T17:28:48.516169178Z
I tried a different set of urls: https://starknet-mainnet.public.blastapi.io https://starknet-testnet.public.blastapi.io
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://starknet-testnet.public.blastapi.io')
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://starknet-mainnet.public.blastapi.io')
Hey @YuppiePF it appears to me that the requests are being sent with EthConnector.py instead of the new StarknetConnector.py. Docker-compose doesn't rebuild images automatically if files change in the build context, so if I had to guess, you're running this branch on a machine with an existing nodies/blockchain_exporter image already built without the new connector. Please try rebuilding the image before bringing up the container (docker-compose build
) (and keep in mind to rebuild using the one you were using previously before restarting your other bcexporter containers.
Description
Connector for starknet and starknet goerli
Type of change
Please delete option that is not relevant.
Related PRs
List related PRs below