url = f"https://api.portkey.ai/v1/configs/{config_id}" headers = {"x-portkey-api-key": portkey_api_key, "content-type": "application/json"} response = requests.get(url, headers=headers) if response.status_code == 200: config = response.json().get("data").get("config")
AttributeError: 'NoneType' object has no attribute 'get'
data
field. Can you please remove .get("data") and then try making the request.