From a43a612339b2bd4edcf1ab395a64a78f7d04641e Mon Sep 17 00:00:00 2001 From: ir4n6 <36238470+ir4n6@users.noreply.github.com> Date: Fri, 7 Mar 2025 00:20:20 -0600 Subject: [PATCH] Update InsightIDR4Py.py - headers not found error --- InsightIDR4Py.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InsightIDR4Py.py b/InsightIDR4Py.py index 4a2fece..623878a 100644 --- a/InsightIDR4Py.py +++ b/InsightIDR4Py.py @@ -99,7 +99,7 @@ def QueryEvents(self, logset_name, query, time_range="Last 20 Minutes", from_tim cont = True while cont: continue_url = r.json()["links"][0]["href"] - r = self.session.get(continue_url, headers=headers) + r = self.session.get(continue_url) if r.status_code != 202: cont = False break @@ -107,7 +107,7 @@ def QueryEvents(self, logset_name, query, time_range="Last 20 Minutes", from_tim events.extend(r.json()["events"]) if "links" in r.json(): continue_url = r.json()["links"][0]["href"] - r = self.session.get(continue_url, headers=headers) + r = self.session.get(continue_url) else: run = False else: