headers = {
"X-Request-ID": self.request_id,
}
client = sseclient.SSEClient(requests.post(url, json=data, headers=headers, stream=True, timeout=32))
start = time.time()
for event in client.events():
logger.info(f"essay_writer ai_service {self.request.request_id = } {event.data = }")
# If the url is wrong, instead of throwing an exception, just go to this line
Bug: The url is invalid. No exception is thrown.