Hey folks, I'm writing a carve endpoint for our os...
# tls
a
Hey folks, I'm writing a carve endpoint for our osquery server, but I'm confused on the format I should be returning errors to the client in. Any pointers here? I've been reading through the docs trying to find the answer too
I'm pretty sure it should just be
{"message":"a message","status":1}
, I could also be misinterpreting the client code for how it's supposed to log errors from the carve start endpoint
z
That sounds about right.
a
Okay, I'm still a bit lost here. I'm expecting https://github.com/osquery/osquery/blob/master/osquery/carver/carver.cpp#L220 to log something when my server returns an error code of 500 and a body like above w/ a json content type
and i have verbose on
the client seems to not return when i expect and instead hits https://github.com/osquery/osquery/blob/master/osquery/carver/carver.cpp#L322