{"action":"opened","issue":{"url":"https://api.github.com/repos/prestodb/presto/issues/5523","repository_url":"https://api.github.com/repos/prestodb/presto","labels_url":"https://api.github.com/repos/prestodb/presto/issues/5523/labels{/name}","comments_url":"https://api.github.com/repos/prestodb/presto/issues/5523/comments","events_url":"https://api.github.com/repos/prestodb/presto/issues/5523/events","html_url":"https://github.com/prestodb/presto/issues/5523","id":162213833,"number":5523,"title":"Client not correctly reporting server error","user":{"login":"zaynoon","id":1828787,"avatar_url":"https://avatars.githubusercontent.com/u/1828787?v=3","gravatar_id":"","url":"https://api.github.com/users/zaynoon","html_url":"https://github.com/zaynoon","followers_url":"https://api.github.com/users/zaynoon/followers","following_url":"https://api.github.com/users/zaynoon/following{/other_user}","gists_url":"https://api.github.com/users/zaynoon/gists{/gist_id}","starred_url":"https://api.github.com/users/zaynoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaynoon/subscriptions","organizations_url":"https://api.github.com/users/zaynoon/orgs","repos_url":"https://api.github.com/users/zaynoon/repos","events_url":"https://api.github.com/users/zaynoon/events{/privacy}","received_events_url":"https://api.github.com/users/zaynoon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-24T19:23:00Z","updated_at":"2016-06-24T19:23:00Z","closed_at":null,"body":"Presto client returns \"Error reading response from server\" instead of reporting server error message.\r\n```\r\nConnecting to https://xx:yy using prism.namespace in cluster\r\nError running command: Error reading response from server\r\njava.lang.RuntimeException: Error reading response from server\r\n\tat io.airlift.http.client.FullJsonResponseHandler.readResponseBytes(FullJsonResponseHandler.java:75)\r\n\tat io.airlift.http.client.FullJsonResponseHandler.handle(FullJsonResponseHandler.java:61)\r\n\tat io.airlift.http.client.FullJsonResponseHandler.handle(FullJsonResponseHandler.java:35)\r\n\tat io.airlift.http.client.jetty.JettyHttpClient.execute(JettyHttpClient.java:348)\r\n\tat com.facebook.presto.client.StatementClient.<init>(StatementClient.java:106)\r\n\tat com.facebook.presto.cli.QueryRunner.startInternalQuery(QueryRunner.java:82)\r\n\tat com.facebook.presto.cli.QueryRunner.startQuery(QueryRunner.java:77)\r\n\tat com.facebook.presto.cli.Console.process(Console.java:284)\r\n\tat com.facebook.presto.cli.Console.executeCommand(Console.java:274)\r\n\tat com.facebook.presto.cli.Console.run(Console.java:129)\r\n\tat com.facebook.presto.cli.Presto.main(Presto.java:32)\r\nCaused by: java.io.IOException: java.lang.RuntimeException: Failed to establish LoginContext for request https://[xx]:yy/v1/statement\r\n\tat org.eclipse.jetty.client.util.InputStreamResponseListener$Input.toIOException(InputStreamResponseListener.java:326)\r\n\tat org.eclipse.jetty.client.util.InputStreamResponseListener$Input.read(InputStreamResponseListener.java:292)\r\n\tat com.google.common.io.CountingInputStream.read(CountingInputStream.java:62)\r\n\tat java.io.FilterInputStream.read(FilterInputStream.java:107)\r\n\tat com.google.common.io.ByteStreams.copy(ByteStreams.java:70)\r\n\tat com.google.common.io.ByteStreams.toByteArray(ByteStreams.java:115)\r\n\tat io.airlift.http.client.FullJsonResponseHandler.readResponseBytes(FullJsonResponseHandler.java:72)\r\n\t... 10 more\r\nCaused by: java.lang.RuntimeException: Failed to establish LoginContext for request https://[xx]:yy/v1/statement\r\n\tat io.airlift.http.client.spnego.SpnegoAuthentication$1.apply(SpnegoAuthentication.java:135)\r\n\tat org.eclipse.jetty.client.AuthenticationProtocolHandler$AuthenticationListener.onComplete(AuthenticationProtocolHandler.java:152)\r\n\tat org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:193)\r\n\tat org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:185)\r\n\tat org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:454)\r\n\tat org.eclipse.jetty.client.HttpReceiver.responseSuccess(HttpReceiver.java:401)\r\n\tat org.eclipse.jetty.client.http.HttpReceiverOverHTTP.messageComplete(HttpReceiverOverHTTP.java:268)\r\n\tat org.eclipse.jetty.http.HttpParser.parseHeaders(HttpParser.java:1024)\r\n\tat org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1257)\r\n\tat org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:158)\r\n\tat org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:119)\r\n\tat org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:69)\r\n\tat org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:90)\r\n\tat org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:114)\r\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)\r\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n\tat org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:186)\r\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)\r\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n\tat org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: javax.security.auth.login.LoginException: java.lang.IllegalArgumentException: Empty nameString not allowed\r\n\tat sun.security.krb5.PrincipalName.validateNameStrings(PrincipalName.java:171)\r\n\tat sun.security.krb5.PrincipalName.<init>(PrincipalName.java:142)\r\n\tat sun.security.krb5.PrincipalName.<init>(PrincipalName.java:155)\r\n\tat sun.security.krb5.internal.ccache.CCacheInputStream.readPrincipal(CCacheInputStream.java:149)\r\n\tat sun.security.krb5.internal.ccache.CCacheInputStream.readCred(CCacheInputStream.java:347)\r\n\tat sun.security.krb5.internal.ccache.FileCredentialsCache.load(FileCredentialsCache.java:185)\r\n\tat sun.security.krb5.internal.ccache.FileCredentialsCache.acquireInstance(FileCredentialsCache.java:82)\r\n\tat sun.security.krb5.internal.ccache.CredentialsCache.getInstance(CredentialsCache.java:83)\r\n\tat sun.security.krb5.Credentials.acquireTGTFromCache(Credentials.java:333)\r\n\tat com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:665)\r\n\tat com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:617)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)\r\n\tat javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)\r\n\tat javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)\r\n\tat javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)\r\n\tat javax.security.auth.login.LoginContext.login(LoginContext.java:587)\r\n\tat io.airlift.http.client.spnego.SpnegoAuthentication.getSession(SpnegoAuthentication.java:197)\r\n\tat io.airlift.http.client.spnego.SpnegoAuthentication.access$200(SpnegoAuthentication.java:46)\r\n\tat io.airlift.http.client.spnego.SpnegoAuthentication$1.apply(SpnegoAuthentication.java:108)\r\n\tat org.eclipse.jetty.client.AuthenticationProtocolHandler$AuthenticationListener.onComplete(AuthenticationProtocolHandler.java:152)\r\n\tat org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:193)\r\n\tat org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:185)\r\n\tat org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:454)\r\n\tat org.eclipse.jetty.client.HttpReceiver.responseSuccess(HttpReceiver.java:401)\r\n\tat org.eclipse.jetty.client.http.HttpReceiverOverHTTP.messageComplete(HttpReceiverOverHTTP.java:268)\r\n\tat org.eclipse.jetty.http.HttpParser.parseHeaders(HttpParser.java:1024)\r\n\tat org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1257)\r\n\tat org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:158)\r\n\tat org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:119)\r\n\tat org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:69)\r\n\tat org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:90)\r\n\tat org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:114)\r\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)\r\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n\tat org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:186)\r\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)\r\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n\tat org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\n\tat javax.security.auth.login.LoginContext.invoke(LoginContext.java:856)\r\n\tat javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)\r\n\tat javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)\r\n\tat javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)\r\n\tat javax.security.auth.login.LoginContext.login(LoginContext.java:587)\r\n\tat io.airlift.http.client.spnego.SpnegoAuthentication.getSession(SpnegoAuthentication.java:197)\r\n\tat io.airlift.http.client.spnego.SpnegoAuthentication.access$200(SpnegoAuthentication.java:46)\r\n\tat io.airlift.http.client.spnego.SpnegoAuthentication$1.apply(SpnegoAuthentication.java:108)\r\n\t... 24 more\r\n```"}}
{"actor":{"display_login":"zaynoon"}}