-
Notifications
You must be signed in to change notification settings - Fork 844
Live query API returns 500 error when query_id not included #11901
Copy link
Copy link
Closed
Labels
#g-endpoint-opsEndpoint ops product groupEndpoint ops product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documentedSomething isn't working as documented~backendBackend-related issue.Backend-related issue.~released bugThis bug was found in a stable release.This bug was found in a stable release.
Milestone
Metadata
Metadata
Assignees
Labels
#g-endpoint-opsEndpoint ops product groupEndpoint ops product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documentedSomething isn't working as documented~backendBackend-related issue.Backend-related issue.~released bugThis bug was found in a stable release.This bug was found in a stable release.
Fleet version: Fleet 0.0.0-SNAPSHOT-301840a
🧑💻 Expected behavior
When sending an API request with missing information in the request body, I would expect to see a 400 error.
💥 Actual behavior
When sending a request to the live query endpoint with an empty array for
query_ids, I receive a 500 error.👣 Reproduction steps
Request URL:
{{host}}/api/{{api_version}}/fleet/queries/runRequest Body:
Response: