helios icon indicating copy to clipboard operation
helios copied to clipboard

Documentation for API '/hosts/statuses'

Open piccobit opened this issue 10 years ago • 1 comments

Hi,

I'm desperately trying to get some output from the API call '/hosts/statuses'.

My node.js application always receives an error 422.

An example with either curl or wget would be fine for me.

TIA,

~ HD ~

piccobit avatar Oct 23 '16 08:10 piccobit

Hi @piccobit , HTTP 422 Unprocessable Entity is usually returned if the request body can't be parsed or understood.

Do you know exactly what headers and request body your node.js code is sending? My advice would be to carefully examine the request you are sending and compare it with the output of your curl commands with the -v flag.

For reference, the /hosts/status endpoint is expecting a list of hostnames (which can be an empty array) in the POST body.

mattnworb avatar Oct 25 '16 11:10 mattnworb