Document Server does not allow localhost or internal IP addresses by default.
Use this solution: https://forum.onlyoffice.com/t/when-i-call-conversion-api-the-editor-seems-to-be-blocked/7584/7
Parameter allowPrivateIPAddress defines if it is allowed to connect private IP address or not. This includes private IP addresses and reserved IP addresses.