From 45fd4454fa40278a8bb2780c8ec7a31e125b5d73 Mon Sep 17 00:00:00 2001 From: Robert Rapp Date: Thu, 15 Jan 2026 01:27:03 +0100 Subject: [PATCH] Fix PeeringDB auth header and info_type --- update.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/update.py b/update.py index 6a7f8ad..c2fb954 100644 --- a/update.py +++ b/update.py @@ -5,7 +5,7 @@ OUT_DIR = os.getenv("OUT_DIR", "/data") LICENSE_KEY = os.getenv("MAXMIND_LICENSE_KEY", "").strip() PDB_API_KEY = os.getenv("PDB_API_KEY", "").strip() PDB_BASE = os.getenv("PDB_BASE", "https://www.peeringdb.com") -INFO_TYPE = os.getenv("PDB_INFO_TYPE", "Research and Education") +INFO_TYPE = os.getenv("PDB_INFO_TYPE", "Educational/Research") TIMEOUT = int(os.getenv("HTTP_TIMEOUT", "30")) LIMIT = int(os.getenv("PDB_LIMIT", "250")) @@ -49,7 +49,7 @@ def pdb_headers(): if not PDB_API_KEY: return {"Accept": "application/json"} # PeeringDB API Key (optional) - return {"Accept": "application/json", "Authorization": f"api-key {PDB_API_KEY}"} + return {"Accept": "application/json", "Authorization": f"Api-Key {PDB_API_KEY}"} def fetch_pdb_page(skip: int): url = f"{PDB_BASE}/api/net" @@ -105,4 +105,3 @@ def main(): if __name__ == "__main__": main() -