From e21da5ff4ce6382951792821bbc71be26bbbfa2b Mon Sep 17 00:00:00 2001 From: Ovuai Aror Date: Tue, 14 May 2024 09:20:52 -0400 Subject: [PATCH] Added code to log Stratodem API Token for debugging unwhitelisted Token Error --- CHANGELOG.md | 4 ++++ strato_query/api_query.py | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f4d919..8ef8108 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [3.10.4] - 2024-05-14 +### Changes +- Added code to log Stratodem API Token for debugging unwhitelisted Token Error + ## [3.10.3] - 2024-05-07 ### Changes - Updated Stratodem API Token due to unwhitelisted Token Error diff --git a/strato_query/api_query.py b/strato_query/api_query.py index 654bb48..2ae7b6c 100644 --- a/strato_query/api_query.py +++ b/strato_query/api_query.py @@ -462,6 +462,7 @@ def _submit_post_request(json_dict: dict, json_data = r.json() if not json_data['success']: + print(f'The APIQueryFailed token value is {json_dict["token"]}') raise APIQueryFailedException(json_data) return json_data