Unable to run CEL program due to error

Hello,

We want to utilize filebeat CEL input to pull the data from Qualys API however when running a simple program:

get("API Notification")

we are getting an error:

$ mito cel.go
failed eval: ERROR: :1:4: http: read on closed response body
| get("API Notification")
| ...^

The same url works fine using curl or postman

We've tried all variations of the GET and POST requests but makes no difference.

The reason why we are using CEL is because Qualys response is in XML format so we need to convert it into JSON.

Any ideas how we can solve the issue and/or is there an alternative way to pull the data from Qualys API? We can't use Qualys integration because it doesn't support the APIs we want to pull data from.

Thanks