@cryptotaxi247 / CoPilot / commits / 51061aad

fix: Remove query parameters in SOCFORTRESS AI API request

Taylor committed Nov 14, 2024 at 10:47 UTC 51061aada5ef0efdea5e1585b887a0e0fc3012b5
1 file changed +2 -2
backend/app/threat_intel/services/socfortress.py
+2 -2
@@ -198,10 +198,10 @@ async def invoke_socfortress_ai_alert_api(
198 httpx.HTTPStatusError: If the API request fails with a non-successful status code.
199 """
200 headers = {"module-version": "1.0", "x-api-key": api_key}
201 - query_params = {"license_key": api_key, "feature_name": "SOCFORTRESS AI"}
201 + #query_params = {"license_key": api_key, "feature_name": "SOCFORTRESS AI"}
202 try:
203 async with httpx.AsyncClient(timeout=timeout) as client:
204 - response = await client.post(url, params=query_params, json=request.dict(), headers=headers)
204 + response = await client.post(url, json=request.dict(), headers=headers)
205 response.raise_for_status() # Raise an exception for non-successful status codes
206 return response.json()
207 except httpx.HTTPStatusError as e: