Skip to content

Commit

Permalink
Debugging toegevoegd voor POST naar GA
Browse files Browse the repository at this point in the history
  • Loading branch information
TinusVL committed Apr 17, 2024
1 parent 7b2ce48 commit 8785229
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def post(self, endpoint: str, payload: dict, active_user: settings.AUTH_USER_MOD
response = requests.post(endpoint, data=payload)
response.raise_for_status()
except requests.exceptions.HTTPError as error:
logger.warn(response.text)
if error.response.status_code == 404:
raise Http404(
f"404 - Unable to post to endpoint {endpoint} with payload {payload}"
Expand Down

0 comments on commit 8785229

Please sign in to comment.