{"action":"created","issue":{"url":"https://api.github.com/repos/GMOD/Apollo/issues/1358","repository_url":"https://api.github.com/repos/GMOD/Apollo","labels_url":"https://api.github.com/repos/GMOD/Apollo/issues/1358/labels{/name}","comments_url":"https://api.github.com/repos/GMOD/Apollo/issues/1358/comments","events_url":"https://api.github.com/repos/GMOD/Apollo/issues/1358/events","html_url":"https://github.com/GMOD/Apollo/issues/1358","id":193002538,"number":1358,"title":"SockJS issue through many layers of proxying (debugging)","user":{"login":"erasche","id":458683,"avatar_url":"https://avatars.githubusercontent.com/u/458683?v=3","gravatar_id":"","url":"https://api.github.com/users/erasche","html_url":"https://github.com/erasche","followers_url":"https://api.github.com/users/erasche/followers","following_url":"https://api.github.com/users/erasche/following{/other_user}","gists_url":"https://api.github.com/users/erasche/gists{/gist_id}","starred_url":"https://api.github.com/users/erasche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erasche/subscriptions","organizations_url":"https://api.github.com/users/erasche/orgs","repos_url":"https://api.github.com/users/erasche/repos","events_url":"https://api.github.com/users/erasche/events{/privacy}","received_events_url":"https://api.github.com/users/erasche/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-12-02T00:35:11Z","updated_at":"2016-12-02T22:32:08Z","closed_at":null,"body":"I'm hitting this when trying to deploy to [rancher](http://rancher.com/). Opening this issue mostly to track my debugging.\r\n\r\nMy setup looks like:\r\n\r\n- User makes request to https://fqdn/apollo-dev/\r\n- Apache on external machine routes to http://localhost:9999/apollo-dev/ (lb)\r\n- lb on localhost is actually in a container, this proxies to http://<container_ip>:8080/apollo-dev/\r\n\r\nCurrently not sure if websockets are functional at all, not sure how I'd test that. It fails before that. Wonder if I can \"get away\" with `x-forwarded-for` type headers and that will fix this?\r\n\r\n- apollo container: can curl OK\r\n  - `curl 'http://localhost:8080/apollo-dev/stomp/084/yf3adjwl/xhr' -X POST  -H 'Accept: */*' -H 'Cookie: JSESSIONID=......;' -i | head`\r\n  - 200/OK, 'o' in body.\r\n- lb container: curl FAIL.\r\n  - `curl 'http://10.42.182.231:8080/apollo-dev/stomp/084/yf3adjwl/xhr' -X POST  -H 'Accept: */*' -H 'Cookie: JSESSIONID=....;' -i`\r\n  - 500\r\n\r\n```\r\n12/2/2016 12:31:47 AM2016-12-02 00:31:47,383 [http-apr-8080-exec-6] ERROR errors.GrailsExceptionResolver  - IllegalArgumentException occurred when processing request: [POST] /apollo-dev/stomp/987/g0noem66/xhr_streaming\r\n12/2/2016 12:31:47 AMhostname can't be null. Stacktrace follows:\r\n12/2/2016 12:31:47 AMorg.springframework.web.socket.sockjs.SockJsException: Uncaught failure in SockJS request, uri=http://localhost:9999/apollo-dev/stomp/987/g0noem66/xhr_streaming; nested exception is org.springframework.web.socket.sockjs.SockJsException: Uncaught failure for request http://localhost:9999/apollo-dev/stomp/987/g0noem66/xhr_streaming; nested exception is java.lang.IllegalArgumentException: hostname can't be null\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\r\n12/2/2016 12:31:47 AM\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n12/2/2016 12:31:47 AM\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n12/2/2016 12:31:47 AM\tat java.lang.Thread.run(Thread.java:745)\r\n12/2/2016 12:31:47 AMCaused by: org.springframework.web.socket.sockjs.SockJsException: Uncaught failure for request http://localhost:9999/apollo-dev/stomp/987/g0noem66/xhr_streaming; nested exception is java.lang.IllegalArgumentException: hostname can't be null\r\n12/2/2016 12:31:47 AM\t... 10 more\r\n12/2/2016 12:31:47 AMCaused by: java.lang.IllegalArgumentException: hostname can't be null\r\n12/2/2016 12:31:47 AM\tat java.net.InetSocketAddress.checkHost(InetSocketAddress.java:149)\r\n12/2/2016 12:31:47 AM\tat java.net.InetSocketAddress.<init>(InetSocketAddress.java:216)\r\n12/2/2016 12:31:47 AM\t... 10 more\r\n12/2/2016 12:31:47 AM2016-12-02 00:31:47,497 [http-apr-8080-exec-10] ERROR errors.GrailsExceptionResolver  - IllegalArgumentException occurred when processing request: [POST] /apollo-dev/stomp/987/colp8zq1/xhr\r\n12/2/2016 12:31:47 AMhostname can't be null. Stacktrace follows:\r\n12/2/2016 12:31:47 AMorg.springframework.web.socket.sockjs.SockJsException: Uncaught failure in SockJS request, uri=http://localhost:9999/apollo-dev/stomp/987/colp8zq1/xhr; nested exception is org.springframework.web.socket.sockjs.SockJsException: Uncaught failure for request http://localhost:9999/apollo-dev/stomp/987/colp8zq1/xhr; nested exception is java.lang.IllegalArgumentException: hostname can't be null\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\r\n12/2/2016 12:31:47 AM\tat org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\r\n12/2/2016 12:31:47 AM\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n12/2/2016 12:31:47 AM\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n12/2/2016 12:31:47 AM\tat java.lang.Thread.run(Thread.java:745)\r\n12/2/2016 12:31:47 AMCaused by: org.springframework.web.socket.sockjs.SockJsException: Uncaught failure for request http://localhost:9999/apollo-dev/stomp/987/colp8zq1/xhr; nested exception is java.lang.IllegalArgumentException: hostname can't be null\r\n12/2/2016 12:31:47 AM\t... 10 more\r\n12/2/2016 12:31:47 AMCaused by: java.lang.IllegalArgumentException: hostname can't be null\r\n12/2/2016 12:31:47 AM\tat java.net.InetSocketAddress.checkHost(InetSocketAddress.java:149)\r\n12/2/2016 12:31:47 AM\tat java.net.InetSocketAddress.<init>(InetSocketAddress.java:216)\r\n12/2/2016 12:31:47 AM\t... 10 more\r\n```"},"comment":{"url":"https://api.github.com/repos/GMOD/Apollo/issues/comments/264580387","html_url":"https://github.com/GMOD/Apollo/issues/1358#issuecomment-264580387","issue_url":"https://api.github.com/repos/GMOD/Apollo/issues/1358","id":264580387,"user":{"login":"erasche","id":458683,"avatar_url":"https://avatars.githubusercontent.com/u/458683?v=3","gravatar_id":"","url":"https://api.github.com/users/erasche","html_url":"https://github.com/erasche","followers_url":"https://api.github.com/users/erasche/followers","following_url":"https://api.github.com/users/erasche/following{/other_user}","gists_url":"https://api.github.com/users/erasche/gists{/gist_id}","starred_url":"https://api.github.com/users/erasche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erasche/subscriptions","organizations_url":"https://api.github.com/users/erasche/orgs","repos_url":"https://api.github.com/users/erasche/repos","events_url":"https://api.github.com/users/erasche/events{/privacy}","received_events_url":"https://api.github.com/users/erasche/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T22:32:08Z","updated_at":"2016-12-02T22:32:08Z","body":"Update: Spent a long time wiring up JMX and mucking with that. No joy there either."}}
{"actor":{"display_login":"erasche"}}