diff --git a/app/api/metrics.py b/app/api/metrics.py index 531f8aa..8b30620 100644 --- a/app/api/metrics.py +++ b/app/api/metrics.py @@ -41,7 +41,7 @@ def get_all_metrics(): try: r_info = requests.post(config["FULLNODE_INFO_URL"], json=json_info).json() except Exception as e: - r_info = "v999.999.999" + r_info = {"result":{"vmVersions":{"platform":"v999.999.999"}}} avalanchego_version = r_info["result"]["vmVersions"]["platform"] response['avalanchego_version'] = avalanchego_version @@ -88,4 +88,4 @@ def get_metrics(): else: avalanche_fullnode_status.set(response['avalanche_fullnode_status']) - return generate_latest().decode() \ No newline at end of file + return generate_latest().decode()