Java.net.unknownhostexception: developers.onemap.sg

Hi,
While trying to use commonapi, i get this JAVA exception “java.net.unknownhostexception: developers.onemap.sg”.

I had clear my forward proxy with this URL(https://developers.onemap.sg).

Here is part of my code:

URL url = new URL(“https://developers.onemap.sg/commonapi/search?searchVal=” + postalCode + “&returnGeom=Y&getAddrDetails=”);

HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod(“GET”);
conn.setRequestProperty(“Accept”, “application/json”);

conn.getResponseCode() != 200; /* The exception is thrown here */

kindly please advise

@bernardc do you have more information of that exception? Make sure you have a proper SSL cert (use letsencrypt) if you are using localhost (bind your hostname).