You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We only set return code in case an audit error occurs and interrupt the request chain. If this happens the metal-api does not send back an error response JSON object, which was defined in the Swagger spec. Therefore errors from metal-go will be outputted like this:
Received unexpected error:
[DELETE /v1/machine/{id}/free][500] freeMachine default "{\"statuscode\":0,\"message\":\"\"}"
The text was updated successfully, but these errors were encountered:
A way to improve this would be to allow passing an error callback function, which is called in case an error occurs in the filter like func(err error, response resp *restful.Response) such that the caller can send the appropriate error response.
We only set return code in case an audit error occurs and interrupt the request chain. If this happens the metal-api does not send back an error response JSON object, which was defined in the Swagger spec. Therefore errors from metal-go will be outputted like this:
The text was updated successfully, but these errors were encountered: