HTTP clients, not just Axios, may impose their own requirements for building a valid request or have their own quirks to deal with.
In this case the error can be resolved by providing a Content-Length header with the length of the JSON request data when making the API request via Axios.
If you experience issues with a particular HTTP client, it may be helpful to compare the behavior with another client or check whether there are HTTP headers that may be required by the client.