Today i have created hasthi.atlassian.net . I tried REST API call from the browser and able to get the JSON response. The URL tried in the browser : https://hasthi.atlassian.net/rest/api/2/issuetype
However in From Java Program i'm not able to connect to hasthi.atlassian.net. Tried InetAddress.getByName("hasthi.atlassian.net") . It throws java.net.UnknownHostException.
Could you please help to resolve this issue, so that i can proceed further to make rest call from java program.
That's normal for corporate IT policies - your DNS access is restricted.
This works from the browser, because the browser is configured to go though an HTTP proxy (which does the actual name resolution). To make this work in Java you need to configure the same HTTP proxy as in the browser. You can do this from command line or set it programmatically - see here. Another option is to set it directly on the HTTP client you are using to make the HTTP request - check its documentation.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs