from [~darahayes]' email on mobile-dev:
Hey folks,
there is also an issue right now with websockets in the community cluster. When attempting to start a subcscription via GraphQL Playground, the websocket connection attempt fails,
{{WebSocket connection to 'wss://data-sync-server-datasync-test.community.skunkhenry.com/graphql' failed: Error during WebSocket handshake: Unexpected response code: 400}}
It seems that the request is reaching the server, I can see one log in the server:
{code} { "level": 30, "time": 1534932393268, "msg": "request completed", "pid": 18, "hostname": "data-sync-server-3-tgqm7", "req": { "id": 7, "method": "GET", "url": "/graphql", "headers": { "accept-encoding": "gzip, deflate", "accept-language": "en-US,en;q=0.9", "cache-control": "no-cache", "origin": "http://data-sync-server-http-datasync-test.community.skunkhenry.com", "pragma": "no-cache", "sec-websocket-extensions": "permessage-deflate; client_max_window_bits", "sec-websocket-key": "1LhEQsQCJ+v8xa8PCHUWJw==", "sec-websocket-protocol": "graphql-ws", "sec-websocket-version": "13", "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", "x-forwarded-for": "148.252.9.234, 10.10.0.12", "host": "data-sync-server-http-datasync-test.community.skunkhenry.com", "x-forwarded-host": "data-sync-server-http-datasync-test.community.skunkhenry.com", "x-forwarded-port": "80", "x-forwarded-proto": "http", "forwarded": "for=10.10.0.12;host=data-sync-server-http-datasync-test.community.skunkhenry.com;proto=http" }, "remoteAddress": "::ffff:10.128.0.1", "remotePort": 36292 }, "res": { "statusCode": 400, "header": "HTTP/1.1 400 Bad Request\r\nX-Powered-By: Express\r\nAccess-Control-Allow-Origin: *\r\nDate: Wed, 22 Aug 2018 10:06:33 GMT\r\nConnection: keep-alive\r\nTransfer-Encoding: chunked\r\n\r\n" }, "responseTime": 1, "v": 1 } {code}
It doesn't work with HTTP or HTTPS. It does work however in a local OpenShift instance using oc cluster up. I believe it might be something to do with the OpenShift Router/Load Balancer. Perhaps there is some global config that is changing the default behaviour. If anyone has any ideas what might cause this, please let me know.
*How to reproduce* (with currently deployed project) Go to https://data-sync-server-datasync-keycloak-test.community.skunkhenry.com/graphql Run query *subscription{memeAdded{id}}* |
|