Happy Business Starts Here


ERROR REST API: java.net.UnknownHostException

Hi all,


I'm invoking rest api from a java client but i'm getting the following error:  "Caused by: java.net.UnknownHostException: apisandbox.zuora.com"

My project is build with JDK 1.8 (64 bit) and i'm using proxy to connect internet. I haven't exception into internet option for bypass proxy server.


Note: If i use postman, it will work!


Can you help me?


Thanks a lot,



Zuora Staff

Re: ERROR REST API: java.net.UnknownHostException

But is your Java emitting 'https://rest.apisandbox.zuora.com/...'? Which should work or 'https://apisandbox.zuora.com/...'? Which will fail for an API code, this url will work for the UI, but the REST api requires the 'rest.' subdomain. 


Can you provide the actual string that was emitted by your java code for the rest call?