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: