diff --git a/instruct/handlers.py b/instruct/handlers.py index ab22ade..24b14bc 100644 --- a/instruct/handlers.py +++ b/instruct/handlers.py @@ -31,7 +31,7 @@ async def sd_create_ticket(login: str, subject: str, description: str) -> str: html_desc = f"

{description}



Создано через TrueConf КЛЕВЕР

" payload = {"request": {"subject": subject, "description": html_desc, "requester": {"email_id": DEFAULT_REQUESTER}, "udf_fields": {}}} async with httpx.AsyncClient(verify=False) as client: - resp = await client.post(endpoint, headers=headers, content=json.dumps({"input_data": payload}), timeout=15.0) + resp = await client.post(endpoint, headers=headers, data={"input_data": json.dumps(payload)}, timeout=15.0) data = resp.json() if data.get("response_status", {}).get("status_code") == 2000: return str(data.get("request", {}).get("id"))