{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/942","repository_url":"https://api.github.com/repos/Azure/azure-sdk-for-java","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/942/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/942/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/942/events","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/942","id":164783861,"number":942,"title":"On  a machine where there is no internet access and azure calls are happening using proxy server azure \"getlocations\" call fails  unknown host exception","user":{"login":"nihalnaik25","id":20279547,"avatar_url":"https://avatars1.githubusercontent.com/u/20279547?v=4","gravatar_id":"","url":"https://api.github.com/users/nihalnaik25","html_url":"https://github.com/nihalnaik25","followers_url":"https://api.github.com/users/nihalnaik25/followers","following_url":"https://api.github.com/users/nihalnaik25/following{/other_user}","gists_url":"https://api.github.com/users/nihalnaik25/gists{/gist_id}","starred_url":"https://api.github.com/users/nihalnaik25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nihalnaik25/subscriptions","organizations_url":"https://api.github.com/users/nihalnaik25/orgs","repos_url":"https://api.github.com/users/nihalnaik25/repos","events_url":"https://api.github.com/users/nihalnaik25/events{/privacy}","received_events_url":"https://api.github.com/users/nihalnaik25/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jianghaolu","id":2320445,"avatar_url":"https://avatars2.githubusercontent.com/u/2320445?v=4","gravatar_id":"","url":"https://api.github.com/users/jianghaolu","html_url":"https://github.com/jianghaolu","followers_url":"https://api.github.com/users/jianghaolu/followers","following_url":"https://api.github.com/users/jianghaolu/following{/other_user}","gists_url":"https://api.github.com/users/jianghaolu/gists{/gist_id}","starred_url":"https://api.github.com/users/jianghaolu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jianghaolu/subscriptions","organizations_url":"https://api.github.com/users/jianghaolu/orgs","repos_url":"https://api.github.com/users/jianghaolu/repos","events_url":"https://api.github.com/users/jianghaolu/events{/privacy}","received_events_url":"https://api.github.com/users/jianghaolu/received_events","type":"User","site_admin":false},"assignees":[{"login":"jianghaolu","id":2320445,"avatar_url":"https://avatars2.githubusercontent.com/u/2320445?v=4","gravatar_id":"","url":"https://api.github.com/users/jianghaolu","html_url":"https://github.com/jianghaolu","followers_url":"https://api.github.com/users/jianghaolu/followers","following_url":"https://api.github.com/users/jianghaolu/following{/other_user}","gists_url":"https://api.github.com/users/jianghaolu/gists{/gist_id}","starred_url":"https://api.github.com/users/jianghaolu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jianghaolu/subscriptions","organizations_url":"https://api.github.com/users/jianghaolu/orgs","repos_url":"https://api.github.com/users/jianghaolu/repos","events_url":"https://api.github.com/users/jianghaolu/events{/privacy}","received_events_url":"https://api.github.com/users/jianghaolu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-07-11T08:24:58Z","updated_at":"2017-10-09T23:03:55Z","closed_at":"2017-10-09T23:03:55Z","author_association":"NONE","body":"On  a machine where there is no internet access and azure calls are happening using proxy server\nazure \"getlocations\" call fails  due to below exception\n\nAPI call : ServiceResponse<List<Provider>> result = armClient.getProvidersOperations().list(null)\n\nWorkaround : update the ip address for login.windows.net in hosts file. host should be resolvable to a IP address. It is ok even if ping request timed out\n\nCaused by: java.io.IOException: java.net.UnknownHostException: login.windows.net\n                at com.microsoft.azure.credentials.ApplicationTokenCredentials.acquireAccessToken(ApplicationTokenCredentials.java:113)\n                at com.microsoft.azure.credentials.ApplicationTokenCredentials.getToken(ApplicationTokenCredentials.java:94)\n                at com.microsoft.rest.credentials.TokenCredentialsInterceptor.sendRequestWithAuthorization(TokenCredentialsInterceptor.java:46)\n                at com.microsoft.rest.credentials.TokenCredentialsInterceptor.intercept(TokenCredentialsInterceptor.java:37)\n                at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:187)\n                at com.microsoft.azure.CustomHeaderInterceptor.intercept(CustomHeaderInterceptor.java:133)\n                at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:187)\n                at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:160)\n                at okhttp3.RealCall.execute(RealCall.java:57)\n                at retrofit2.OkHttpCall.execute(OkHttpCall.java:177)\n                at com.microsoft.azure.management.resources.ProvidersOperationsImpl.list(ProvidersOperationsImpl.java:240)\n                ... 21 more\nCaused by: java.util.concurrent.ExecutionException: java.net.UnknownHostException: login.windows.net\n                at java.util.concurrent.FutureTask.report(FutureTask.java:122)\n                at java.util.concurrent.FutureTask.get(FutureTask.java:192)\n                at com.microsoft.azure.credentials.ApplicationTokenCredentials.acquireAccessToken(ApplicationTokenCredentials.java:108)\n                ... 32 more\nCaused by: java.net.UnknownHostException: login.windows.net\n                at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)\n                at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)\n                at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)\n                at java.net.Socket.connect(Socket.java:589)\n                at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)\n                at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)\n                at sun.net.NetworkClient.doConnect(NetworkClient.java:180)\n                at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)\n                at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)\n                at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)\n                at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)\n                at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)\n                at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1104)\n                at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:998)\n                at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)\n                at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1282)\n                at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1257)\n                at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)\n                at com.microsoft.aad.adal4j.AdalOAuthRequest.configureHeaderAndExecuteOAuthCall(AdalOAuthRequest.java:140)\n                at com.microsoft.aad.adal4j.AdalOAuthRequest.send(AdalOAuthRequest.java:83)\n                at com.microsoft.aad.adal4j.AdalTokenRequest.executeOAuthRequestAndProcessResponse(AdalTokenRequest.java:80)\n                at com.microsoft.aad.adal4j.AuthenticationContext.acquireTokenCommon(AuthenticationContext.java:818)\n                at com.microsoft.aad.adal4j.AuthenticationContext.access$100(AuthenticationContext.java:66)\n                at com.microsoft.aad.adal4j.AuthenticationContext$1.call(AuthenticationContext.java:174)\n                at com.microsoft.aad.adal4j.AuthenticationContext$1.call(AuthenticationContext.java:163)\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/comments/335313063","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/942#issuecomment-335313063","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/942","id":335313063,"user":{"login":"martinsawicki","id":881767,"avatar_url":"https://avatars2.githubusercontent.com/u/881767?v=4","gravatar_id":"","url":"https://api.github.com/users/martinsawicki","html_url":"https://github.com/martinsawicki","followers_url":"https://api.github.com/users/martinsawicki/followers","following_url":"https://api.github.com/users/martinsawicki/following{/other_user}","gists_url":"https://api.github.com/users/martinsawicki/gists{/gist_id}","starred_url":"https://api.github.com/users/martinsawicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinsawicki/subscriptions","organizations_url":"https://api.github.com/users/martinsawicki/orgs","repos_url":"https://api.github.com/users/martinsawicki/repos","events_url":"https://api.github.com/users/martinsawicki/events{/privacy}","received_events_url":"https://api.github.com/users/martinsawicki/received_events","type":"User","site_admin":false},"created_at":"2017-10-09T23:03:55Z","updated_at":"2017-10-09T23:03:55Z","author_association":"CONTRIBUTOR","body":"supported in the current SDK releases (automatic)"}}
{"actor":{"display_login":"martinsawicki"}}