From acd886826f2e5addf4d107711ae5f2b36880caa1 Mon Sep 17 00:00:00 2001 From: SeaBlooms Date: Wed, 28 Aug 2024 20:13:24 -0600 Subject: [PATCH] Update client.py --- jupiterone/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jupiterone/client.py b/jupiterone/client.py index bbc7671..a25ef46 100644 --- a/jupiterone/client.py +++ b/jupiterone/client.py @@ -240,7 +240,7 @@ def _limit_and_skip_query( return {"data": results} - def _execute_syncapi_request(self, endpoint: str, payload: Dict = None) -> Dict: + def _execute_syncapi_request(self, endpoint: str, payload: Dict): """Executes POST request to SyncAPI endpoints""" # initiate requests session and implement retry logic of 5 request retries with 1 second between @@ -266,6 +266,7 @@ def _execute_syncapi_request(self, endpoint: str, payload: Dict = None) -> Dict: "JupiterOne API rate limit exceeded" ) raise JupiterOneApiError(content.get("errors")) + return response.json() elif response.status_code == 401: