Websocket Error: Invalid HTTP upgrade", code: 404

666 Views Asked by At

We have deployed an ALB for our spingboot application which consists of both Rest and Websocket services hosted in EKS cluster. We have added health check, ssl redirect etc. annotations in the ingress.yaml file. The listener is HTTPS: 443 and the SSL certificate is from ACM.

When we hit the ALB endpoint, rest service is working fine but receiving the following error with the websocket service.

Websocket Optional(wss://xxx.xx.xx.com:443/xx/xx/xx/xx) disconnected with error Optional(Starscream.WSError(type: Starscream.ErrorType.upgradeError, message: "Invalid HTTP upgrade", code: 404))

Versions: aws-load-balancer-controller: v2.3.0, Kubernetes version: 1.19, Platform version: eks.7.

Appreciate your inputs in resolving this issue.

0

There are 0 best solutions below