From c12eb6ea0233445069eb709dfeb0b36636188f63 Mon Sep 17 00:00:00 2001 From: MS Date: Thu, 23 Jul 2020 18:47:56 +0200 Subject: debug --- talermerchantdemos/httpcommon/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'talermerchantdemos/httpcommon/__init__.py') diff --git a/talermerchantdemos/httpcommon/__init__.py b/talermerchantdemos/httpcommon/__init__.py index 106e731..df84e99 100644 --- a/talermerchantdemos/httpcommon/__init__.py +++ b/talermerchantdemos/httpcommon/__init__.py @@ -21,9 +21,11 @@ def err_abort(abort_status_code, **params): # @return the backend response (JSON format). def backend_post(backend_url, endpoint, json): headers = {"Authorization": "ApiKey sandbox"} + final_url = urljoin(backend_url, endpoint) + print("POSTing to: " + final_url) try: resp = requests.post( - urljoin(backend_url, endpoint), json=json, headers=headers + final_url, json=json, headers=headers ) except requests.ConnectionError: err_abort(500, message="Could not establish connection to backend") -- cgit v1.2.3