grendel-consulting / steampipe-plugin-kolide

Use SQL to instantly query your Kolide K2 fleet
https://hub.steampipe.io/plugins/grendel-consulting/kolide
Apache License 2.0
3 stars 1 forks source link

Unprocessable Entity #129

Closed ramirezj closed 4 months ago

ramirezj commented 4 months ago

Describe the bug Reported via MacAdmins Slack, running the following query with a Kolide Device Trust API key returned an error response:

select * from kolide_person_open_issue;

Error reported:

Error: kolide: failed to retrieve collection at /people/{resourceId}/open_issues with response: "Kolide K2 API Error: 422 Unprocessable entity" (SQLSTATE HV000)

Steampipe version (steampipe -v) v0.22.2

Plugin version (steampipe plugin list) v0.3.0

To reproduce Run the query provided

Expected behavior Successful execution and return of reasonable results

Additional context All other endpoints contain the field being filtered on, but this does not return a person_id

ramirezj commented 4 months ago

Able to reproduce (missed in testing for v0.3.0), but wrangling Golang / Steampipe to insert a "constant" runtime value in the response