From 5d6e85d4b625ad5876f2ed18f2ecd492f2007524 Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 2 Jan 2026 21:03:12 +0100 Subject: [PATCH] SEND THE BLOODY REQUEST --- api-customer/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api-customer/app.py b/api-customer/app.py index 31a89e97..01bef340 100644 --- a/api-customer/app.py +++ b/api-customer/app.py @@ -1,3 +1,4 @@ +import json import os import threading @@ -33,7 +34,7 @@ def handle_message_received(topic:str, payload:str): try : print(payload, flush=True) url = "https://192.168.15.125:1880/message/receive" - response = requests.post(url, json=payload, verify=False) + response = requests.post(url, json=json.dumps(payload), verify=False) print(response.json(), flush=True) except Exception as e: print(e)